954,148 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help with C++

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

scott_6169
Newbie Poster
13 posts since Sep 2004
Reputation Points: 11
Solved Threads: 0
 

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.

Dark_Omen
Posting Pro
573 posts since Apr 2004
Reputation Points: 23
Solved Threads: 6
 

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!

Chainsaw
Posting Pro in Training
436 posts since Jun 2004
Reputation Points: 36
Solved Threads: 11
 

in Turbo C/C++, you can use the gotoxy(x, y) function to move the cur on the screen.

XianBin
Newbie Poster
24 posts since Aug 2004
Reputation Points: 15
Solved Threads: 0
 

by the way,you must include in your source files.

XianBin
Newbie Poster
24 posts since Aug 2004
Reputation Points: 15
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You