商人过河下游戏

时间:2014-10-20 09:13:12
【文件属性】:
文件名称:商人过河下游戏
文件大小:5KB
文件格式:TXT
更新时间:2014-10-20 09:13:12
商人过河 #include #include void print() //游戏屏幕 { system("cls"); printf("****************************************************************\n"); printf("* *\n"); printf("* ^_^welcome to the game!^_^ *\n"); printf("* *\n"); printf("* Game rules: *\n"); printf("* 3 men and 3 rateiners and goods to pass the river,the boat*\n"); printf("* carrys 2 persons each time.In passing the river,at any bank *\n"); printf("* number of men must be more than the number the rateiners , *\n"); printf("* or the rateiners will kill the men and take the goods. *\n"); printf("* Game operations: 1.Input the number of men and rateiners *\n"); printf("* in turn. *\n"); printf("* 2.Input error keys,the game will restart. *\n"); printf("****************************************************************\n"); }

网友评论

  • 非常感谢楼主的分享!代码能运行,健壮性也不错!