+ 1
how can i change my string type to int type in c++?
i want to change my int variable to an string,but i dont know how to do it:(
4 Answers
+ 8
Can I order a search bar pls.
https://www.sololearn.com/Discuss/1352374/?ref=app
+ 6
armin You can do this đđ
int a = 10 ;
string str = to_string(a);
cout<<str;
+ 1
Use the char values. You can create a string, or probably just char array, and calculate the char value for each number.
https://code.sololearn.com/c2apIupGhnuq/?ref=app
+ 1
thank u guys .all of your answers helped me
thanks:)