only static const int type 可以被定義
但是今天如果想定義一個字串 在class中被用到
要如何做呢
http://stackoverflow.com/questions/1563897/c-static-constant-string-class-member
26 | You have to define your static member outside the class definition and provide the initailizer there.
The syntax you were originally trying to use (initializer inside class definition) is only allowed with integral and enum types. |
沒有留言:
張貼留言