943,485 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1916
  • C++ RSS
Sep 16th, 2004
0

Help with C++

Expand Post »
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
Reputation Points: 11
Solved Threads: 0
Newbie Poster
scott_6169 is offline Offline
13 posts
since Sep 2004
Sep 16th, 2004
0

Re: Help with C++

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.
Reputation Points: 23
Solved Threads: 6
Posting Pro
Dark_Omen is offline Offline
573 posts
since Apr 2004
Sep 16th, 2004
0

Re: Help with C++

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!
Reputation Points: 36
Solved Threads: 11
Posting Pro in Training
Chainsaw is offline Offline
436 posts
since Jun 2004
Sep 17th, 2004
0

Re: Help with C++

in Turbo C/C++, you can use the gotoxy(x, y) function to move the cur on the screen.
Reputation Points: 15
Solved Threads: 0
Newbie Poster
XianBin is offline Offline
24 posts
since Aug 2004
Sep 17th, 2004
0

Re: Help with C++

by the way,you must include <conio.h> in your source files.
Reputation Points: 15
Solved Threads: 0
Newbie Poster
XianBin is offline Offline
24 posts
since Aug 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Need direction on how start this program
Next Thread in C++ Forum Timeline: 128bit arithmetic





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC