C++

warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default]
string position= "123456789";

Hi all i have debug my code, and I have gotten this error whcih i have no clue what it is about .
Compile with the options -std=c++11 and -pedantic-errors

For example: g++ -std=c++11 -Wall -Wextra -pedantic-errors my_program.cpp
Topic archived. No new replies allowed.