a) Do you have C++11 compliant compiler? Does it set to C++11 mode?
b) Did you #include <string>
?
I am a noob at this, so not exactly sure what you are asking in a), but yea i do have #include<string>
Last edited on
if i remove the std before the stoul like :
x = stoul(result);
then i get the error
a3_p1.cpp:57: error: âstoulâ was not declared in this scope
What IDE do you use? MSVS? If so, what version.
I am actually using Putty to connect to my uni linux server, and i am using g++ as my compiler.
Ok, try to compile with -std=c++0x
parameter
Or -std=c++11
, depending on the version of g++.