+ 1
Is it possible to make variable that has both numbers and letters?
One of the codes I'm making needs to print out a string + a number + more text (example blah157537blah) is it possible to make a variable or string that can contain both letters and numbers, or do i have to use a creative solution?
4 ответов
+ 3
yeah sure, a string can contain numbers if you want to
+ 1
Does something like this work?
int Something = 100;
String AlsoSomething;
AlsoSomething = "etrhehtretr" << Something << "vgfdggfb";
cout << AlsoSomething;
What I mean is, is it possible to insert both letters and a number (stored in some variable) into the string?