warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]
摘要:
struct test{int a=1111111; }test; struct test{const int a=1111111; }test; struct test{ }test; 同样问题:http://stackoverflow.com/questions/13662441/c11-all 阅读全文
posted @ 2017-03-15 11:22
琦在江湖飘
阅读(4332)
评论(0)
推荐(0)
摘要:
来自网络的一个解释参考: typedef struct tagMyStruct { int iNum; long lLength; } MyStruct; 上面的tagMyStruct是标识符,MyStruct是变量类型(相当于(int,char等))。 这语句实际上完成两个操作: 1) 定义一个新 阅读全文
posted @ 2017-03-15 11:15
琦在江湖飘
阅读(2359)
评论(0)
推荐(0)
浙公网安备 33010602011771号