Error:‘itoa’ was not declared in this scope

Some compilers do not support Itoa because it is not standard. The solution
is that

c++11: std::to_ stringsprintf

stdio.hchar *c = new char;
sprintf(c,"%d",num);
stringstream

sstream.hstringstream ss; int x = 1;
ss << x;
string str = ss.str ();

Read More: