码迷,mamicode.com
首页 >  
搜索关键字:pause    ( 1331个结果
杨辉三角
问题:            杨辉三角 #include #include int c(int x, int y); /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) ...
分类:其他好文   时间:2015-04-04 12:19:16    阅读次数:150
汉诺塔问题
问题:          汉诺塔。 #include #include void hanoi(int N, char A, char B, char C); /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int ar...
分类:其他好文   时间:2015-04-04 12:17:57    阅读次数:184
掷骰子
问题:          游戏规则:          两个人轮流掷骰子6次,并将每次投掷得点数累加起来,点数多者获胜。          要求求出玩家玩100局之后谁是最终的获胜者。 #include #include /* run this program using the console pauser or add your own getch, system("pause"...
分类:其他好文   时间:2015-04-03 21:07:55    阅读次数:145
搬山游戏
问题;          设有n座山,计算机与人作为比赛双方,轮流搬山,规定每次搬山数不超过k,谁搬最后一座山谁输。 #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int arg...
分类:其他好文   时间:2015-04-03 21:07:16    阅读次数:153
可逆素数
/* 请从小到大输出所有的4位数的可逆素数 可逆素数:一个素数将各个位数字的顺序倒过来构成的反序数也是素数 */ #include #include #include int prime(int m); /* run this program using the console pauser or add your own getch, system("pause") or input ...
分类:其他好文   时间:2015-04-01 23:53:19    阅读次数:171
歌德巴赫猜想
/* 2000以内的不小于4的正偶数都能分解成两个素数之和(验证这个猜想的正确性) */ #include #include #include int prime(int m); /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int...
分类:其他好文   时间:2015-04-01 23:53:01    阅读次数:177
要发就发
#include #include #include #define NUM 320 int number[NUM]; int prime(int m); /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc,...
分类:其他好文   时间:2015-04-01 23:51:44    阅读次数:143
一个简单的问题
#include #include int main(){ printf("%f",8.0/5.0); system("pause"); return 0;}no.18.0/5.0改成8/5结果:0.000000no.2%f改成%d结果-1717986918
分类:其他好文   时间:2015-04-01 10:57:24    阅读次数:87
两个数的最小公倍数
问题:          求两个数的最小公倍数 #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { int m, n, b; i...
分类:其他好文   时间:2015-04-01 00:29:41    阅读次数:180
两个数的最大公约数
问题:           求两个数的最大公约数。 //最大公约数 #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char *argv[]) { int ...
分类:其他好文   时间:2015-04-01 00:28:51    阅读次数:119
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!