?? 猜拳游戲1.txt
字號(hào):
猜拳游戲
#include<stdio.h>
void main()
{int computer;
int you;
printf("input your choose:1.jianzi 2.bu 3.shitou\n");
scanf("%d",&you);
computer=rand()%3+1;
clrscr();
if(you==computer)
printf("same%d %d\n",computer,you);
else if(computer<you)
printf("computer win");
else printf("you win%d %d",computer,you);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -