Wednesday, June 5, 2019

c++ - How to concatenate a std::string and an int?

I thought this would be really simple but it's presenting some difficulties. If I have



std::string name = "John";
int age = 21;


How do I combine them to get a single string "John21"?

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...