04 2017 档案

摘要:#include struct Student { int num; char name[20]; int Cscore; int Escore; int Mscore; int aver; }; int main() { void averr(struct Student stu[]); void input (stru... 阅读全文
posted @ 2017-04-11 22:33 /*nobody*/ 阅读(134) 评论(0) 推荐(0)
摘要:例题9.1 总结: 这个程序是个普通的定义结构体并初始化,再输出,运行时没用啥错误 例题9.2 总结: 定义名字类型为指针类型 ,但 程序不能直接给指针赋值,然后将指针类型换成数组类型;赋值的问题解决了 但是程序虽然编译正常,但是程序运行后在学生分数后面又多了个0;经过上网查询知道%s和%d连续用时 阅读全文
posted @ 2017-04-09 16:53 /*nobody*/ 阅读(286) 评论(0) 推荐(0)