下载此文档

商人过河c语言程序编程.doc


文档分类:IT计算机 | 页数:约12页 举报非法文档有奖
1/12
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/12 下载此文档
文档列表 文档介绍
#include <>
#include <>
#include <>
void basic_interface() //基本界面
{

system("clear");
system("tput cup 5 20");
printf("==============================================================================================\n");
system("tput cup 6 20");
printf("* *\n");
system("tput cup 7 20");
printf("* ^_^欢迎使用商人过河游戏!^_^ *\n");
system("tput cup 8 20");
printf("* *\n");
system("tput cup 9 20");
printf("* 游戏说明: *\n");
system("tput cup 10 20");
printf("* 三个商人带着三个随从和货物过河,船每次最多只能载两个人,要求在过河期间,任一岸上商人的人数*\n");
system("tput cup 11 20");
printf("* 要大于或等于随从的人数,否则随从会杀掉商人抢走货物。*\n");
system("tput cup 12 20");
printf("* *\n");
system("tput cup 13 20");
printf("* 游戏操作: *\n");
system("tput cup 14 20 ");
printf("* (1)依次输入过河的商人和随从人数; *\n");
system("tput cup 15 20");
printf("* (2)非法输入按键将重新开始。*\n");
system("tput cup 16 20");
printf("*--------------------------------------------------------------------------------------------*\n");
system("tput cup 17 20");printf("*\n");system("tput cup 17 113");printf("*\n");
system("tput cup 18 20");printf("*\n");system("tput cup 18 113");printf("*\n");
system("tput cup 19 20");printf("*\n");system("tput cup 19 113");printf("*\n");
system("tput cup 20 20");printf("*\n");system("tput cup 20 113");printf("*\n");
system("tput cup 21 20");printf("*\n");system("tput cup 21 113");printf("*\n");
system("tput cup 22 20");printf("*\n");system("tput cup 22 113");printf("*\n");
system("tput cup 23 20");printf("*\n");system("tput cup 23 113");printf("*\n");
system("tput cup 24 20");printf("*\n");system("tput cup 24 113");printf("*\n");
system("tput cup 25 20");printf("*\n");system("tput cup 25 113");printf("*\n");
system("tput cup 26 20");printf("*\n");system("tput cup 26 113");printf("*\n");
system("tput cup 27 20");printf("*\n");system("tput cup 27 113");printf("*\n");
system("tput cup 28 20");
printf("*****************************************************************

商人过河c语言程序编程 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数12
  • 收藏数0 收藏
  • 顶次数0
  • 上传人1557281760
  • 文件大小55 KB
  • 时间2018-01-18