摘要: 原文 阅读全文
posted @ 2015-05-15 23:08 niceforbear 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 using namespace std; 4 string reverse(string &str){ 5 if(str.length()>1){ 6 string sub=str.substr(1,str.length()-... 阅读全文
posted @ 2015-05-15 22:58 niceforbear 阅读(2341) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/xFreedom/archive/2011/05/16/2048037.html 阅读全文
posted @ 2015-05-15 22:37 niceforbear 阅读(60) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/weiwenhp/article/details/8006587http://www.cnblogs.com/hnrainll/archive/2011/05/17/2048548.htmlhttp://blog.csdn.net/hondely/artic... 阅读全文
posted @ 2015-05-15 22:18 niceforbear 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 原文 阅读全文
posted @ 2015-05-15 21:41 niceforbear 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/yc_sunniwell/archive/2010/07/14/1777441.html 阅读全文
posted @ 2015-05-15 21:37 niceforbear 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cnblogs.com/BeyondTechnology/archive/2010/09/21/1832369.html 阅读全文
posted @ 2015-05-15 21:27 niceforbear 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 最小公倍数=两个整数的乘积 / 最大公约数求最大公约数的方法:(1)辗转相除法 1 #include 2 using namespace std; 3 int main() 4 { 5 int a,b,tmp,m; 6 cin>>a>>b; 7 m=a*b; 8 i... 阅读全文
posted @ 2015-05-15 00:48 niceforbear 阅读(3947) 评论(0) 推荐(0) 编辑