摘要:
1 const 传达的意思应该是这个变量是常量不能更改2 const 在 * 左边表示数据是const,在右边表示指针是const // char greeting[] = "hello"; char* p = greeting; //const *: const data //... 阅读全文
posted @ 2014-06-25 03:32
williamwood
阅读(361)
评论(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
阅读(916)
评论(0)
推荐(0)
浙公网安备 33010602011771号