上一页 1 ··· 6 7 8 9 10 11 12 下一页

2004年7月17日

摘要: #include#include using namespace std; void Hanoi(int n, string start, string middle, string end); void move(int n, string start, string end){ cout... 阅读全文
posted @ 2004-07-17 15:34 Anthony-黄亮 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 在实际工作中,你不应该写出这样的代码。甚至不应该写出有点类似的代码。 不过做为学习,它可以极大提高你对C语言的认识。让你知道,原来这样也是可以的。 警告:以下代码将杀死你数以万计的脑细胞,脑容量较小者请小心。 说明:以下程序可能是K&R旧式程序,肯定能编译通过。请不要提出XX程序不能编译等等问题。... 阅读全文
posted @ 2004-07-17 15:31 Anthony-黄亮 阅读(136) 评论(0) 推荐(0) 编辑
摘要: //isalpha和isupper函数是标准库函数,其的简要功能如下:int islower(int c){ return 'a' #include #include char Postpone(char orig, int distance){ //不处理非字母 if (is... 阅读全文
posted @ 2004-07-17 15:19 Anthony-黄亮 阅读(117) 评论(0) 推荐(0) 编辑
摘要: /*!brief 复制字符串的后一部分 编写函数strmcpy(s,t,m),将字符串从第m个字符开始的全部字符复制到字串s中去。n难度系数:简单param [in] source 源字符串.只读param [in] dest 目的字符串param [in] nStart 从第nStart个字符开... 阅读全文
posted @ 2004-07-17 15:12 Anthony-黄亮 阅读(99) 评论(0) 推荐(0) 编辑
摘要: include#include#include using namespace std; class PhoneBookEntry{public: typedef unsigned long PhoneNumber; typedef char const* NameString... 阅读全文
posted @ 2004-07-17 15:06 Anthony-黄亮 阅读(70) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页

导航