gotoxy function

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2009
Posts: 10
Reputation: furqankhyraj has a little shameless behaviour in the past 
Solved Threads: 0
furqankhyraj furqankhyraj is offline Offline
Newbie Poster

gotoxy function

 
0
  #1
Aug 3rd, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 109
Reputation: winrawr is an unknown quantity at this point 
Solved Threads: 1
winrawr's Avatar
winrawr winrawr is offline Offline
Junior Poster

Re: gotoxy function

 
0
  #2
Aug 3rd, 2009
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.
I wake up! And my mind's out, never again will I sell out. Converting vegetarians.
Into the midnight giving it to you, I don't know it just feels right.
This is the time of the revolution, Cooking the next step.
Converting vegetarians, minding the gap since 1996
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 255
Reputation: Hiroshe is a jewel in the rough Hiroshe is a jewel in the rough Hiroshe is a jewel in the rough Hiroshe is a jewel in the rough 
Solved Threads: 16
Hiroshe's Avatar
Hiroshe Hiroshe is offline Offline
Posting Whiz in Training

Re: gotoxy function

 
1
  #3
Aug 4th, 2009
>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).
"Sometimes, when I lie in bed at night and look up at the stars, I think to myself, "Man! I really need to fix that roof."-Jack Handy
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 2
Reputation: sapan645 is an unknown quantity at this point 
Solved Threads: 0
sapan645 sapan645 is offline Offline
Newbie Poster

Hi this is sapan i need help

 
-2
  #4
21 Days Ago
please help me in making simplest address book program in c language.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC