摘要: 大字节序(Big Endian):低地址存高位小字节序(Little Endian):高地址存地位int main(){ int x=1; char *temp = NULL; temp= (char *)&x; if (*temp =... 阅读全文
posted @ 2014-06-20 20:24 Hala 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 编写类String 的构造函数、析构函数和赋值函数,已知类String 的原型为:class String{public:String(const char *str = NULL); // 普通构造函数String(const String &other); // 拷贝构造函数~ String(v... 阅读全文
posted @ 2014-06-20 20:23 Hala 阅读(606) 评论(0) 推荐(0) 编辑