There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
black screen blue screen blue screen of death boot computer connection crash css dell display driver drivers error excel firefox firefox 3 game hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem ram router slow software sound sprtcmd.exe trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
How do I make paragraph in C++?


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Boogiepop's Avatar
Junior Member with 4 posts.
 
Join Date: Jan 2004
30-Jan-2004, 08:13 PM #1
Question How do I make paragraph in C++?
.......yes I know....very newbie question, but I am. This is just an example, I want my program to show paragraph like this in console-based application:

About The Sun

The sun is a star. Its the head of our solorsystem. The sun is a asd sad ssssss dsda sda d sad a sd sa d sa d sadsa d sa da s d sad sa dsa d sa dsa d sa d sa d sa d sadf sd dfa sd f sd fs f a d s f dsf sdf sd f dsf.

(.....FOR SOME REASON, my post doesnt show in paragraph.....but you know what I mean)


THIS IS MY CODE RIGHT NOW, I tried just typing the paragraph in, but some sentences were CUT OFF.

switch (choice)
{

case '1' : cout << endl << "I HAVE TO PUT THAT PARAGRAPH HERE." << endl;
break;


Any help would do, THANKS ALOT FOR YOUR TIME>
Regicide's Avatar
Senior Member with 302 posts.
 
Join Date: Aug 2003
Experience: Advanced
01-Feb-2004, 01:05 AM #2
You can try this:
Code:
switch(something)
{
     case 1:
             cout << "\n\tNew Paragraph";
             break;
}
'/n' is a new line and '\t' is like hitting the tab key. If that doesn't work, try putting in a '\r' after the '\n'.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:13 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.