#include
#include
int main()
{
char a[1000][100],b[1000][100];
int t,i,j,n,fa=0;
printf("Please input test times: ");
scanf("%d",&t);
printf("Output:\n");
for(i=0;i {
printf("Please input game times: ");
scanf("%d",&n);
getchar();
for(j=0;j {
scanf("%c%c",a[i][j],b[i][j]);
if((a[i][j]=='S'&&b[i][j]=='P')||(a[i][j]=='R'&&b[i][j]=='S')||(a[i][j]=='P'&&b[i][j]=='R')) fa=fa+1;
else if((a[i][j]=='P'&&b[i][j]=='S')||(a[i][j]=='S'&&b[i][j]=='R')||(a[i][j]=='R'&&b[i][j]=='P'))fa=fa-1;
}
if(fa>0)printf("The Winer is: Player 1");
else if(fa<0)printf("The Winer is: Player 2");
else printf("The game is TIE\n");
}
return 0;
}
你还是把程序截个图吧 直接粘贴的看着很难受
http://www.xuebuyuan.com/755605.html
http://blog.csdn.net/kay2377/article/details/17124161
你开的空间太大了吧,40W的空间