C语言结构体实例一

来源:互联网 发布:非p2p下载软件 编辑:程序博客网 时间:2024/05/22 14:33
#include "stdio.h"
#define LEN 20
struct info{
char first[LEN];
char last[LEN];
int age;
};
int main(){
struct info boy={"abin" ,"lee" ,20};
printf("%s %s %d.\n",boy.first,boy.last,boy.age);
return 0;
}
原创粉丝点击