#include<stdio.h>
#include <stdlib.h>
#include <string.h>
struct student //学生信息
{
int age;
char name[10];
int id;
};
int main()
{ student _meage;
_meage.age=18;
_meage.id=001;
strcpy(_meage.name,"li");
if(_meage.age>17)
printf("%d/n",_meage.age);
return 0;
}
C++结构体简单使用
最新推荐文章于 2023-04-02 17:23:22 发布