How to insert integers into a string of integers in C++?

前端 未结 0 1654
醉话见心
醉话见心 2020-12-29 08:06

For example:

string answer = "";
answer = "10";
int a = 1;
answer = to_string(a) + answer;

Why doesn\'t this work? Instea

相关标签:
回答
  • 消灭零回复
提交回复
热议问题