I yet again started another journey into C++, the class's. Now, in my class I have 1 line that has a few errors alone, and then 30 other errors spread around the code. Right now its the single line thats annoying me. This is the line:
And the errors:Code:char *dat_filename=new char[50];
Thats the info, really annoying I have been trying for about 15 minutes but couldnt find out why it isnt allowing me to declare it.Error 1: ISO C++ forbids initialization of member 'dat_filename'
Line 2: making 'dat_filename' static
Error 3: ISO C++ forbids in-class initialization of non-const static member 'dat_filename'
Error 4: field initializer is not constant
Oh and, just to ask, what is the max amount of characters in a windows filename? Because Im almost garenteed its not 50