0
How do I make for the String resultado
receive the value int of cont3
and the value char of c[cont]
?
resultado=" ";
resultado=resultado+to_string(**cont3**)+to_string(**c[cont1**]);
I tried to use the to_string()
but it didn’t solve my problem.
Take a look at this question in the English OS, you have several examples, simple to understand: https://stackoverflow.com/questions/191757/how-to-concatenate-a-stdstring-and-an-int
– Ricardo Pontual