I occasionally want 'cout' to give me a new line. actually, pretty often . How can I do that? I know that I can 'putchar(10)', however, this way requires me to do one right after every line of text... it's just not too short.
Here's an example of what I have:
of course, when I print this I assumed that doing another 'cout' would start a new line, but it hasn't...Code:cout << "What is your account type? Possible types:"; cout << "-----------------------------------"; cout << "| Account Type | Interest |"; cout << "|----------------------|-----------"; cout << "|1) personal finance | 2.3% |"; cout << "|2) personal homeowner | 2.6% |"; cout << "|3) personal gold | 2.9% |"; cout << "|4) small business | 3.3% |"; cout << "|5) big business | 3.5% |"; cout << "|6) gold business | 3.8% |"; cout << "|_________________________________|";
just in case it matters, i'm using g++ on a linux x86 system