Can I fly high in the Sky?

Never say never.

导航

2015年8月20日

摘要: 1 //比较两个字符串大小 2 bool compareSub(char* const s1,char* const s2) 3 { 4 int i=0; 5 while((itoupper(s2[i]))10 return false;11 ... 阅读全文

posted @ 2015-08-20 14:25 lsr_flying 阅读(502) 评论(0) 推荐(0) 编辑

摘要: *取自《c++标准程序库》,p227 阅读全文

posted @ 2015-08-20 11:28 lsr_flying 阅读(415) 评论(0) 推荐(0) 编辑

摘要: 大数相乘的实现,在这里,采用最直接的实现方法:类似于手工计算,逐位相乘。 1 #include 2 3 using namespace std; 4 5 //反转字符,使其符合数组低位为数字低位 6 void reverseNum(char* s1) 7 { 8 int i=0; 9 ... 阅读全文

posted @ 2015-08-20 11:08 lsr_flying 阅读(155) 评论(0) 推荐(0) 编辑