+ 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?

29th Jun 2019, 10:04 PM
Mythical Coding
Mythical Coding - avatar
4 ответов
+ 3
yeah sure, a string can contain numbers if you want to
29th Jun 2019, 10:29 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 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?
29th Jun 2019, 10:40 PM
Mythical Coding
Mythical Coding - avatar