Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
How can i concatinate in c++ to give a sentence
2 Antworten
+ 16
std::string name = "dt";
int age = 20;
std::string res;
res = name + std::to_string(age);
+ 2
Just add the 2 strings with +.