0
I’m doing a function that returns all class information ContaBanco.h
, as, the current balance, owner, type, etc, but the compiler understands as a sum and not as concatenation. How can I solve this?
The code:
string statusConta() {
return "\nDono: " + getDono() + "\nAberta: " + getStatus() + "\nNumero: " + getNumConta() + "\nTipo: " + getTipo() + "\nSaldo: " + getSaldo();
}
Tried to use the function
to_string
?– anonimo