请问下面这个程序哪些地方错了?#include #include #define N 5void printScore(struct student stu[],int n);void main(){\x05int n,m,nnum;\x05struct student\x05{\x05\x05int nnum;\x05\x05char name[20];\x05\x05int data[3];\x05};\x05struct studen
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/30 04:27:01
请问下面这个程序哪些地方错了?#include #include #define N 5void printScore(struct student stu[],int n);void main(){\x05int n,m,nnum;\x05struct student\x05{\x05\x05int nnum;\x05\x05char name[20];\x05\x05int data[3];\x05};\x05struct studen
请问下面这个程序哪些地方错了?
#include
#include
#define N 5
void printScore(struct student stu[],int n);
void main()
{
\x05int n,m,nnum;
\x05struct student
\x05{
\x05\x05int nnum;
\x05\x05char name[20];
\x05\x05int data[3];
\x05};
\x05struct student b[N];
\x05for (n=0;n
请问下面这个程序哪些地方错了?#include #include #define N 5void printScore(struct student stu[],int n);void main(){\x05int n,m,nnum;\x05struct student\x05{\x05\x05int nnum;\x05\x05char name[20];\x05\x05int data[3];\x05};\x05struct studen
结构体的声明应该放在main函数外面,这样函数printscore才能使用他