发布时间:2013-04-27 15:33:00
No, you can't call one constructor from another in C++03 (called a delegating constructor).This changed in C++11 (aka C++0x), which added support for the following syntax:(example taken from Wikipedia)class SomeType { int number; public: SomeType(int newNumber) : number(newNumber) {} S.........【阅读全文】
发布时间:2012-12-13 16:37:04
char str[10];sprintf(str, "%i", sWidth);......【阅读全文】