0
String
as I knew about it on Qbasic of Bill Gates we could easily transform strings into int and int into strings. but on c++ I think it is a little bit different. could someone just tell about ways of transforming.
3 Answers
+ 2
String to Integer: Use stoi()
int num = stoi("46");
Integer to String: Use to_string()
string str = to_string(46);
0
does it really works
0
That's great