0
What code do I need to use to declare a variable that is a mixture of characters and numbers?
3 Antworten
+ 8
If you're not doing any math on those numbers, the string data type will work just fine. Add this to the top of your code to use it:
#include <string>
+ 3
string myVar = "m4g1c";
+ 3
thank you so much Tamra & Seamiki. it did work 🖒