2010年11月28日
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void main(){ in... 阅读全文
posted @ 2010-11-28 17:12 别人叫我军师 阅读(670) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void main(){ floa... 阅读全文
posted @ 2010-11-28 16:58 别人叫我军师 阅读(1116) 评论(0) 推荐(0) 编辑
摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void ma... 阅读全文
posted @ 2010-11-28 15:21 别人叫我军师 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void ma... 阅读全文
posted @ 2010-11-28 15:03 别人叫我军师 阅读(498) 评论(3) 推荐(0) 编辑
摘要: 从3个红球、6个白球和7个黑球中,任意取出8个球作为一组输出,在每组中,可以没有黑球,但必须要有红球和白球 求总的组数以及每组的红球、白球、黑球的数目。 思路:红球取值范围为1个到3个,白球为1个到6个,黑球为0个到7个 代码 Code highlighting pr... 阅读全文
posted @ 2010-11-28 14:25 别人叫我军师 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> #include void ma... 阅读全文
posted @ 2010-11-28 14:00 别人叫我军师 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 输入一个整数n,求n的各位上的数字之积。例如,若输入918,则输出应该是72,若输入360,则输出为 0。 思路:定义一个初始变量,并赋初始值为1。先求出输入的数的各个位的数字。并循环相乘。 代码 Code highlighting produced by Actip... 阅读全文
posted @ 2010-11-28 13:27 别人叫我军师 阅读(3741) 评论(0) 推荐(0) 编辑