to_strng(12)-'1' in string in c++ code example Example: to_string in c++ int i=11; string str= to_string(i);