内容发布更新时间 : 2025/1/6 19:08:27星期一 下面是文章的全部内容请认真阅读。
精心整理
#include
voidinit1(); voidprint1(); intexit1(); voidinit2(); voidprint2(); intexit2(); voidinit3(); voidprint3(); intexit3(); voidnear1(inta,intb,inta1,intb1); charchessman[10][10]; voidmain()//主函数 {time_tstart,end,time; start=clock(); mai(); intd; cout<<\ cout<<\ cout<<\ cout<<\cout<<\cout<<\亲,请选择适合您智商的级别:[1]低级[2]中级[3]登峰造极**\
精心整理
cout<<\cout<<\ cout<<\ cout<<\ cout<<\研发小组:QYQ\cout<<\请选择:***-\ cin>>d; cout<<\ system(\ switch(d) { case1:init1();break; case2:init2();break; case3:init3();break; default:cout<<\你个逗比\ } intop; introw,line; introw2,line2; do
{if(d==1) print1(); elseif(d==2) print2(); elseif(d==3) print3(); printf(\printf(\printf(\printf(\scanf(\if(op==1) {
printf(\不造亲第一个相中了谁呢:\scanf(\printf(\再给他找个伴儿吧,亲:\scanf(\
if(chessman[line][row]!=chessman[line2][row2]) {
printf(\有缘无分呐!\\n\ system(\}
elseif(line==line2&&row==row2) {
printf(\有搞错哦,亲!!!\\n\ system(\
精心整理
}
elseif(line<=line2) {
near1(line,row,line2,row2); } else {
near1(line2,row2,line,row); } }
if(op==2) { }
if(op==3) {main();} }while(exit1(),exit2(),exit3()); system(\printf(\哇呀!你好厉害!\\n\end=clock(); time=end-start;//这里的时间是计算机内部时间 cout< voidinit1()//4乘4矩阵 { inti,j; inta[4]={0}; srand(time(NULL)); for(i=1;i<4;i++) for(j=1;j<5;j++) { chessman[i][j]=rand()%4+65; if(chessman[i][j]==65)a[0]++; if(chessman[i][j]==66)a[1]++; if(chessman[i][j]==67)a[2]++; if(chessman[i][j]==68)a[3]++; } for(i=0;i<4;i++) { if(a[i]%2!=0) chessman[4][i+1]=i+65; else chessman[4][i+1]=69; }