- 3
- 0
- 约 13页
- 2017-03-22 发布于江苏
- 举报
爱因斯坦难题源代码
爱因斯坦难题源代码
//爱因斯坦难题
//程序设计:万道濮
//说明:此版本是完美版
#includeiostream.h
int main()
{
coutendl;
cout * 爱因斯坦难题 * \n;
cout 程序设计开发:万道濮\n;
cout [2005.1.15]\n;
cout================================================================================;
int a[5],b[5],c[5],d[5],e[5],t[120][5]; //定义所需数组
int i,j,c1,c2,c3,c4,p1,p2,p3,p4,p5; //定义所需变量
char cmd; //cmd用来暂存用户输入的命令
int k; //k用来计数
cout 传说下面是爱因斯坦在20世纪初出的一道测试题。他说世界上有99%的人回答不出这道题,看看你是否属于另外的1%?题目如下:\n;
cout\n前提:\n;
cout 1 有五栋五种颜色的房子\n;
cout 2 每一位房子的主人国籍都不同\n;
cout
原创力文档

文档评论(0)