【转】C++ const用法 尽可能使用const
摘要:http://www.cnblogs.com/xudong-bupt/p/3509567.html C++ const 允许指定一个语义约束,编译器会强制实施这个约束,允许程序员告诉编译器某值是保持不变的。如果在编程中确实有某个值保持不变,就应该明确使用const,这样可以获得编译器的帮助。 1.c
阅读全文
posted @ 2017-10-16 19:17
posted @ 2017-10-16 19:17
posted @ 2017-10-11 11:56
posted @ 2017-10-11 11:55
posted @ 2017-10-11 11:47