c语言课程设计 综合型小游戏.docxVIP

  • 33
  • 0
  • 约6.69千字
  • 约 10页
  • 2021-07-10 发布于湖北
  • 举报
#includestdio.h #includestdlib.h #includetime.h int money1=10000,money2=10000,money=10000; int main() { void game1(int put); void game2(int put); int put,game,i; printf(单人模式请输入1,双人模式请输入2.\n); scanf(%d,put); if(put==1) printf(你的本钱有一万元,你的任务是翻一倍,达到两万元则游戏胜利\n); if(put==2) printf(最后金钱多者为胜者\n); system(pause); system(cls); for(i=0;i=1000;i++) { printf(请选择游戏:1.思维风暴 2.猜数字 3.退出\n); scanf(%d,game); if(game==1) { game1(put); } if(game==2) { game2(put); } if(game==3) { break; } } if(put==1) { if(money=20000) printf(恭喜你通关了\n); if(money=10000money20000)

文档评论(0)

1亿VIP精品文档

相关文档