Here is my code the // fix is were the problem is at, for some reason it shoots some strange symbols, also I cant seem to make it do pay to: along with the payee.
s2.append(' ', dollars)
The first argument to append here is the number of characters to append. The second argument is the character to append. ' ' is not a count, and dollars is not a character.
To append to a string use +=, as in: s2 += to_string(dollars);
To convert to a string use to_string, as shown immediately above.
Ah thank you I fixed the code the only problem now is it wont let me put a dollar sign in front of dollar and . for cents. I kept getting an error when I try saying I overloaded the function.