943,701 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 2175
  • C RSS
Aug 3rd, 2009
-1

gotoxy function

Expand Post »
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
Similar Threads
Reputation Points: -1
Solved Threads: 0
Newbie Poster
furqankhyraj is offline Offline
14 posts
since Aug 2009
Aug 3rd, 2009
0

Re: gotoxy function

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.
Reputation Points: 19
Solved Threads: 1
Junior Poster
winrawr is offline Offline
110 posts
since Dec 2008
Aug 4th, 2009
1

Re: gotoxy function

>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).
Reputation Points: 431
Solved Threads: 17
Posting Whiz in Training
Hiroshe is offline Offline
255 posts
since Jun 2008
Nov 15th, 2009
-2

Hi this is sapan i need help

please help me in making simplest address book program in c language.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sapan645 is offline Offline
2 posts
since Nov 2009

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: Passing a pointer
Next Thread in C Forum Timeline: AntiVir reports code as trojan: TR/Eplx.IMG-WMF.bfg





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


Follow us on Twitter


© 2011 DaniWeb® LLC