Warning

 

Close

Confirm Action

Are you sure you wish to do this?

Confirm Cancel
BCM
User Panel

Site Notices
Posted: 8/16/2005 7:44:44 AM EDT
Anyone know how to insert a blank line in the output for a console app in C++?
Link Posted: 8/16/2005 7:47:47 AM EDT
[#1]
My C++ is a little rusty but did you try

cout << endl;

alternatively the C way, something like this might work:

printf("\n");

I might be way off on this because haven't touched C/C++ in a long time
Link Posted: 8/16/2005 7:56:51 AM EDT
[#2]
Thank ya.

cout << endl; worked.

I tried a couple variations of that but not that specific code. Thanks.
Close Join Our Mail List to Stay Up To Date! Win a FREE Membership!

Sign up for the ARFCOM weekly newsletter and be entered to win a free ARFCOM membership. One new winner* is announced every week!

You will receive an email every Friday morning featuring the latest chatter from the hottest topics, breaking news surrounding legislation, as well as exclusive deals only available to ARFCOM email subscribers.


By signing up you agree to our User Agreement. *Must have a registered ARFCOM account to win.
Top Top