+ 5
only constructors take member initializers
void Set(int Data) : Dat(Data) {} Output: only constructors take member initializers
1 ответ
0
You are using an initializer list (the thing that starts with a colon) on something that is not a constructor.