请回答菜鸟一些C语言问题?解释要详细。

2024-12-20 08:13:52
推荐回答(2个)
回答1:

#include"stdio.h"
# define NUM 40
struct stu
{
char name[15];
char sex[10];
int age[3];
char address [30];
} information;

回答2:

#include
using namespace std;
struct Rec//记录...
{
char name[21];//姓名..
char gender[21];//性别...
int age;//年龄...
char address[101];//地址...
}Stu[41];//40个学生...
int main()
{
int n;
int i;
printf("Please tell me the number of the students in your class:\n");//输入有几个同学...
scanf("%d",&n);
getchar();
for(i=0;i for(i=0;i return 0;
}