书上例11.5,因为看不懂例题,所以根本就不知道错哪了 #include #define FORMAT"%d\n%s\n%f\n%f\n%f\n" struct student {int num; char name[20]; float score[3]; }; main() {void print(struct student); struct student stu; stu.num=12345; strc
来源:学生作业学帮网 编辑:学帮网 时间:2024/05/18 19:00:23
书上例11.5,因为看不懂例题,所以根本就不知道错哪了
#include
#define FORMAT"%d\n%s\n%f\n%f\n%f\n"
struct student
{int num;
char name[20];
float score[3];
};
main()
{void print(struct student);
struct student stu;
stu.num=12345;
strcpy(stu.name,"li li");
stu.score[0]=67.5;
stu.score[1]=89;
stu.score[2]=78.6;
print(stu);
}
void print(struct student stu)
{print(FORMAT,stu.num,stu.name,stu.score[0],stu.score[1],stu.score[2]);
printf("\n");
getch();
}
再帮我看看错哪了?
void print(struct student stu)
{
printf(FORMAT,stu.num,stu.name,stu.score[0],stu.score[1],stu.score[2]);
printf("\n");
getch();
}
在函数的开始的那个“PRINT”应该为“PRINTF”就可以了.编程要有耐心,也要细心.为了强调,用了大写.
书上例11.5,因为看不懂例题,所以根本就不知道错哪了 #include #define FORMAT%d
%s
%f
%f
%f
struct student {int num; char name[20]; float score[3]; }; main() {void print(struct student); struct student stu; stu.num=12345; strc
为什么,有些题看不懂教课书上例题
根本看不懂
根本看不懂,
隐函数和参数函数的问题书上的例题和归纳比较模糊有点看不懂
等价无穷小的证明,书上例题看不懂请大神给出详细证明,
因为要开学了 所以自己写根本写不完
李永乐的考研数学复习全书看不懂怎么办感觉那书上面的例题好难啊 看完课本感觉对那上面的例题完全没辙 那书上面的例题要全部看懂吗 看不懂要怎么办呢
数学例题都看不懂
高数 例题看不懂
这例题怎么看不懂
例题8,解析看不懂,
求解答,例题看不懂
怎么办?主课满分120,我语文考103,英语58,数学一面空白,怎么办?怎么学?现在基本的数学题我都看不懂,而且有时候因为不会所以根本不想学,英语也是.
高中化学,题目根本看不懂
英语根本看不懂,
我想问下那个玛雅中文版的怎么弄啊.我英语不好,所以根本看不懂.
C语言书上的一个例题看不懂题目是用筛选法输出100以内的素数