Help with C++

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2004
Posts: 13
Reputation: scott_6169 is an unknown quantity at this point 
Solved Threads: 0
scott_6169 scott_6169 is offline Offline
Newbie Poster

Help with C++

 
0
  #1
Sep 16th, 2004
I have to alter my hello world program so that it prints my initials to the middle of the screen. It says i can use any of the escape sequences that help me it says. Can anyone help
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 573
Reputation: Dark_Omen is an unknown quantity at this point 
Solved Threads: 6
Dark_Omen Dark_Omen is offline Offline
Posting Pro

Re: Help with C++

 
0
  #2
Sep 16th, 2004
Do you want it just to say your name, or say your name and ask you to quit. Can you post what you already have.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 436
Reputation: Chainsaw is an unknown quantity at this point 
Solved Threads: 10
Chainsaw's Avatar
Chainsaw Chainsaw is offline Offline
Unprevaricator

Re: Help with C++

 
0
  #3
Sep 16th, 2004
Deja Vu all over again! This post is eerily similar to the earlier post you made that folks were replying to. Did you give up on them?

What I hear you asking is how escapes can help move your initials to the center of the screen? Like the TAB escape of \t perhaps?

printf("Hello World\t\t\tS61\n"); // three tabs enough? try and see!
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 24
Reputation: XianBin is an unknown quantity at this point 
Solved Threads: 0
XianBin XianBin is offline Offline
Newbie Poster

Re: Help with C++

 
0
  #4
Sep 17th, 2004
in Turbo C/C++, you can use the gotoxy(x, y) function to move the cur on the screen.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 24
Reputation: XianBin is an unknown quantity at this point 
Solved Threads: 0
XianBin XianBin is offline Offline
Newbie Poster

Re: Help with C++

 
0
  #5
Sep 17th, 2004
by the way,you must include <conio.h> in your source files.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC