char msg[40];
string s = "The price is $";
float price = 120.00;
string input = " and the tax is $";
float tax = 5.00;
For example, I want to fill msg with "The price is $120.00 dollars and the tax is $5.00". The code I have so far that is not working is:
msg = s + price + input + tax;
I am stuck right now and can't figure it out, any help is appreciated. Thanks.