Hi,
I'm new to C++. I want to make a char*
. But I don't know how.
In Java is it just this:
int player = 0;
int cpu = 0;
String s = "You: " + player + " CPU: " + cpu;
How can I do this? I need a char*
.
Where I'm focusing on is to paste the integer after the string.
Edit:
I want to use a method that takes an argument char *
, so if I try to pass a const char *
, it gives an error.
I don't know witch terms I should use to search for this, so maybe this questions is already asked.
Thanks, Martijn
Solved!
The compiler was (is) broken. Thank you!