欢迎来到天天文库
浏览记录
ID:50178538
大小:83.50 KB
页数:12页
时间:2020-03-06
《C语言程序设计连连看.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、#include#include#include#include#includeusingnamespacestd;#includeintmai()//倒计时{for(inti=3;i>=0;i--){longt=time(NULL);for(;;){longn=time(NULL);if(n!=t)break;}system("cls");cout<<""<2、!!"<3、out<<"****************************************************************"<4、<<"****************************************************************"<>d;cout<<"-***"<5、w,line;introw2,line2;do{if(d==1)print1();elseif(d==2)print2();elseif(d==3)print3();printf("options:");printf("t1.select");printf("t2.restart");printf("t3.sort");scanf("%d",&op);if(op==1){printf("不造亲第一个相中了谁呢:");scanf("%d%d",&line,&row);printf("再给他找个伴儿吧,亲:");scanf("%d%d",&line2,&r6、ow2);if(chessman[line][row]!=chessman[line2][row2]){printf("有缘无分呐!");system("pause");}elseif(line==line2&&row==row2){printf("有搞错哦,亲!!!");system("pause");}elseif(line<=line2){near1(line,row,line2,row2);}else{near1(line2,row2,line,row);}}if(op==2){}if(op==3){main();}}while(exit1(),exit2(7、),exit3());system("pause");printf("tt哇呀!你好厉害!");end=clock();time=end-start;//这里的时间是计算机内部时间cout<
2、!!"<3、out<<"****************************************************************"<4、<<"****************************************************************"<>d;cout<<"-***"<5、w,line;introw2,line2;do{if(d==1)print1();elseif(d==2)print2();elseif(d==3)print3();printf("options:");printf("t1.select");printf("t2.restart");printf("t3.sort");scanf("%d",&op);if(op==1){printf("不造亲第一个相中了谁呢:");scanf("%d%d",&line,&row);printf("再给他找个伴儿吧,亲:");scanf("%d%d",&line2,&r6、ow2);if(chessman[line][row]!=chessman[line2][row2]){printf("有缘无分呐!");system("pause");}elseif(line==line2&&row==row2){printf("有搞错哦,亲!!!");system("pause");}elseif(line<=line2){near1(line,row,line2,row2);}else{near1(line2,row2,line,row);}}if(op==2){}if(op==3){main();}}while(exit1(),exit2(7、),exit3());system("pause");printf("tt哇呀!你好厉害!");end=clock();time=end-start;//这里的时间是计算机内部时间cout<
3、out<<"****************************************************************"<4、<<"****************************************************************"<>d;cout<<"-***"<5、w,line;introw2,line2;do{if(d==1)print1();elseif(d==2)print2();elseif(d==3)print3();printf("options:");printf("t1.select");printf("t2.restart");printf("t3.sort");scanf("%d",&op);if(op==1){printf("不造亲第一个相中了谁呢:");scanf("%d%d",&line,&row);printf("再给他找个伴儿吧,亲:");scanf("%d%d",&line2,&r6、ow2);if(chessman[line][row]!=chessman[line2][row2]){printf("有缘无分呐!");system("pause");}elseif(line==line2&&row==row2){printf("有搞错哦,亲!!!");system("pause");}elseif(line<=line2){near1(line,row,line2,row2);}else{near1(line2,row2,line,row);}}if(op==2){}if(op==3){main();}}while(exit1(),exit2(7、),exit3());system("pause");printf("tt哇呀!你好厉害!");end=clock();time=end-start;//这里的时间是计算机内部时间cout<
4、<<"****************************************************************"<>d;cout<<"-***"<5、w,line;introw2,line2;do{if(d==1)print1();elseif(d==2)print2();elseif(d==3)print3();printf("options:");printf("t1.select");printf("t2.restart");printf("t3.sort");scanf("%d",&op);if(op==1){printf("不造亲第一个相中了谁呢:");scanf("%d%d",&line,&row);printf("再给他找个伴儿吧,亲:");scanf("%d%d",&line2,&r6、ow2);if(chessman[line][row]!=chessman[line2][row2]){printf("有缘无分呐!");system("pause");}elseif(line==line2&&row==row2){printf("有搞错哦,亲!!!");system("pause");}elseif(line<=line2){near1(line,row,line2,row2);}else{near1(line2,row2,line,row);}}if(op==2){}if(op==3){main();}}while(exit1(),exit2(7、),exit3());system("pause");printf("tt哇呀!你好厉害!");end=clock();time=end-start;//这里的时间是计算机内部时间cout<
5、w,line;introw2,line2;do{if(d==1)print1();elseif(d==2)print2();elseif(d==3)print3();printf("options:");printf("t1.select");printf("t2.restart");printf("t3.sort");scanf("%d",&op);if(op==1){printf("不造亲第一个相中了谁呢:");scanf("%d%d",&line,&row);printf("再给他找个伴儿吧,亲:");scanf("%d%d",&line2,&r
6、ow2);if(chessman[line][row]!=chessman[line2][row2]){printf("有缘无分呐!");system("pause");}elseif(line==line2&&row==row2){printf("有搞错哦,亲!!!");system("pause");}elseif(line<=line2){near1(line,row,line2,row2);}else{near1(line2,row2,line,row);}}if(op==2){}if(op==3){main();}}while(exit1(),exit2(
7、),exit3());system("pause");printf("tt哇呀!你好厉害!");end=clock();time=end-start;//这里的时间是计算机内部时间cout<
此文档下载收益归作者所有