Hi
I'm new to C++ and I don't know how to make breaks between cout<< messages
can anyone help me?
Hi
I'm new to C++ and I don't know how to make breaks between cout<< messages
can anyone help me?
endl or \n for newlines.
i.e.
cout << "message" << endl;
or
cout << "message" << '\n';
also, check the faq.
you mean like breaking out of a loop with couts???
What exactly do you mean by breaks? If you mean line breaks, its easy; just do:
cout << message << "\n" << message2;
this would display like:
message
message2
Its that simple.
If you're new, you should probably check out some of the tutorials on sites like gamedev.net and cprogramming.com (this bb's host site). Those will help you a lot.
um no actually it wouldnt, to show that you need quotes : )this would display like:
message
message2
well if message and message2 are char*'s which contain "message" and "message2" respectively then it would.
Also, you could do this:
This would output:Code:cout << "message1\nmessage2";
message1
message2
Just Google It. √
(\ /)
( . .)
c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.