摘要: 候选人得票的统计程序。有3个候选人,最终只有1人当选 阅读全文
posted @ 2017-12-18 20:27 KellerC 阅读(810) 评论(0) 推荐(0) 编辑
摘要: 例题7.1 声明学生结构体Student 定义两个结构体变量student1和student2 成员包括学号 姓名 性别 出生日期 成绩 学生1初始化 把学生1复制给学生2 输出学生2 #include<iostream> #include <string.h> using namespace st 阅读全文
posted @ 2017-12-18 20:24 KellerC 阅读(774) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main(){ char str[]="Winer Winer Chicken Dinner"; cout #include using namespace std; int main(){ char str[]="rua rua rua"; char str2[]={9,8,24}; ... 阅读全文
posted @ 2017-12-18 20:22 KellerC 阅读(1259) 评论(1) 推荐(0) 编辑
摘要: #include using namespace std; int main(){ int a[8]; for(int i=0;i>a[i]; } for(int i=0;i using namespace std; int main(){ int a[10]; for(int i=0;i>*(a+i); cout<<endl... 阅读全文
posted @ 2017-12-18 20:14 KellerC 阅读(1440) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; void compare(int a,int b){ int rand; if(a>x>>y; compare(x,y); } #include using namespace std; int main(){ int x,y,*a,*b,*p; cin>>x>>y; a=&x... 阅读全文
posted @ 2017-12-18 20:11 KellerC 阅读(158) 评论(0) 推荐(0) 编辑