摘要: 1 const 传达的意思应该是这个变量是常量不能更改2 const 在 * 左边表示数据是const,在右边表示指针是const // char greeting[] = "hello"; char* p = greeting; //const *: const data //... 阅读全文
posted @ 2014-06-25 03:32 williamwood 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 1 overload a operator of a class, you can only use one para., this pointer is automatically used. class Rational { public: //not correct sinc... 阅读全文
posted @ 2014-06-25 03:17 williamwood 阅读(910) 评论(0) 推荐(0) 编辑