摘要: #include struct student{ int num; float score; struct student *next; } ; int main(void){ struct student stu1,stu2,stu3; /*定义3个struct student 类型的变量*/ struct student *head,*p;/*定义2个指向str... 阅读全文
posted @ 2018-05-01 19:27 sunnybowen 阅读(184) 评论(0) 推荐(0) 编辑
摘要: #include struct student{ int num; char name[20]; float score; } stu={112301,"bowen1",20}; void print(struct student stux); int main(void){ print(stu); } void print(struct student stux){ ... 阅读全文
posted @ 2018-05-01 19:12 sunnybowen 阅读(123) 评论(0) 推荐(0) 编辑
摘要: #include struct student{ int num; char name[20]; float score; } stu={112301,"bowen1",20}; void print(struct student *p); int main(void){ print(&stu); } void print(struct student *p){ pr... 阅读全文
posted @ 2018-05-01 19:08 sunnybowen 阅读(157) 评论(0) 推荐(0) 编辑
摘要: #include struct student{ int num; char name[20]; float score; }; int main(void){ struct student stu[3]={112301,"bowen1",20,112111,"bowen2",10,110911,"bowen3",30}; struct student *sp; ... 阅读全文
posted @ 2018-05-01 18:54 sunnybowen 阅读(199) 评论(0) 推荐(0) 编辑
摘要: int main(void){ char c[5]; scanf("%s",c); printf("%s",c); } 阅读全文
posted @ 2018-05-01 18:45 sunnybowen 阅读(584) 评论(0) 推荐(0) 编辑