warning non-static data member
Posted: Sun Oct 20, 2013 6:37 pm
D:/c++/2/2/main.cpp:17:22: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default]
What's wrong? Why do I get? I can not locate a variable inside the method, since it must extend their.
Code: Select all
class Class_windows_function
{
private:
int test_counter = 0;
public:
int counter_add(int number)
{
test_counter = test_counter+number;
return test_counter;
}
protected:
};