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

gotoxy function

dearest
i want to make a program in which i want to move a "%" to each side of a screen so how could be made please help earlier

furqankhyraj
Newbie Poster
16 posts since Aug 2009
Reputation Points: -1
Solved Threads: 0
 

I'm assuming you mean a console program?
You'll have to know the width of the screen, typically is is 80x25, but it can always be different.

You can't do a gotoxy function in pure C, you'll have to read into the O/S dependent libraries for your system (I don't know what that is). If all you want to do is put a character on both sides of the screen, it would be easier to just put one, then put 78 spaces, then put another one.

winrawr
Junior Poster
110 posts since Dec 2008
Reputation Points: 19
Solved Threads: 1
 

>You can't do a gotoxy function in pure C, you'll have to read into the O/S dependent libraries for your system (I don't know what that is)
gotoxy() doesn't have much to do with os dependancy. It's a function that is not part of C, so many compiler's do not include it.

If i'm not mistaken, PDcurses and Ncurses libraries have more portable substitutes. You may also be able to get the screen width with them. There is no way you can do this with standard C, unless you assume the terminal width is 80 (which may not be the case).

Hiroshe
Posting Whiz in Training
256 posts since Jun 2008
Reputation Points: 431
Solved Threads: 17
 

please help me in making simplest address book program in c language.

sapan645
Newbie Poster
2 posts since Nov 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You