#include "stdafx.h"
#include "stdio.h"
#define NAMESIZE 20
#include "stdlib.h"
struct date
{
int year,month,day;
};
struct student
{
long number;
char name[NAMESIZE];
struct date birthday;
int score;
};
int _tmain(int argc, _TCHAR* argv[])
{
struct student p;
printf("the p length: %d\n",sizeof(p));
printf("the struct student length: %d\n",sizeof(struct student));
return 0;
}
构造数据类型
最新推荐文章于 2023-03-27 15:26:01 发布