Send to a Friend

waterskier2007's avatar

How do i convert an int variable to a string in c++?

I took an intro to programming class about 3 years ago and I feel like we learned a simple one line of code to convert an int to a string. For example if I had the number 123 and wanted to convert it to the string “123” I thought there was one line of code. i cannot for the life of me remember it. Thanks for any help

Topics: , ,

Using Fluther

or

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.

Mobile | Desktop


Send Feedback   

`