undefined, Notation() , . , , , .
, std::string :
std::string Notation() const
{
char s[10];
int x=5;
sprintf(s, "%d", x);
return s;
}
++ :
std::string Notation() const
{
int x=5;
std::ostringstream oss;
oss << x;
return oss.str();
}
:
char str[50];
sprintf(str, "%s", Notation().c_str());
( ) std::ostringstream ( std::string) , , , , 10 char s[10]. .