12 2017 档案
摘要:候选人得票的统计程序。有3个候选人,最终只有1人当选
阅读全文
摘要:例题7.1 声明学生结构体Student 定义两个结构体变量student1和student2 成员包括学号 姓名 性别 出生日期 成绩 学生1初始化 把学生1复制给学生2 输出学生2 #include<iostream> #include <string.h> using namespace st
阅读全文
摘要:#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}; ...
阅读全文
摘要:#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...
阅读全文
摘要:#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...
阅读全文

浙公网安备 33010602011771号