C++ string how to
- by typoknig
This is a very simple question and I feel stupid for asking it, but I am pressed for time and I need to figure it out :)
I just need to know how to make a string that contains text and other variables. For instance in Java I can just do this:
String someString;
for(int i = 0; i>10; i++){
someString = ("this text has printed " + i + " times"); //how do I create this line in C++?
System.out.println(someString);
i++;
}