28

#include <iostream>

using namespace std;

typedef struct mytype{
int a;
float b;
};

int main(int argc, char *argv[])
{
mytype obj;
obj.a=6;
obj.b=1.4;ex
cout << "Hello World!" << endl;
cout << obj.a << "\t" << obj.b << endl;
return 0;
}

posted on 2017-03-29 16:14  tuzhuo  阅读(72)  评论(0编辑  收藏  举报