#include
#include
int main()
{
struct student
{
int number;
char name[20];
char sex;
int age;
char addr[30];
};
struct student s1;
struct student *p;
s1.number=1002;
s1.sex='m';
s1.age=90;
strcpy(s1.name,"Liu");
strcpy(s1.addr,"Guang dong");
p=&s1;
printf("%d,%s,%c,%d,%s\n",p->number,p->name,p->sex,p->age,p->addr);
return 0;
}
阅读(545) | 评论(0) | 转发(0) |