gotxy function REPLY

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

gotxy function REPLY

 
0
  #1
Aug 3rd, 2009
i make that program but this program is giving an error please debug the error

#include <conio.h>
#include <stdio.h>


int main()
{
int i;
printf("This is the first line.\n");
gotoxy(10,4);
printf("This is the second line.\n");
gotoxy(20,8);
printf("And this is line 3.\n");

return 0;

}

Thanks,,....
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 36
Reputation: 9868 is on a distinguished road 
Solved Threads: 7
9868 9868 is offline Offline
Light Poster

Re: gotxy function REPLY

 
0
  #2
Aug 3rd, 2009
gotoxy is not a standard C function, so you need other library for that.
Last edited by 9868; Aug 3rd, 2009 at 9:53 am.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,361
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1464
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: gotxy function REPLY

 
0
  #3
Aug 3rd, 2009
This is one of the problems with learning to program with an ancient compiler such as Turbo C -- you don't know the difference between compiler-specific functions and standard C.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 201
Reputation: yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold yellowSnow is a splendid one to behold 
Solved Threads: 35
yellowSnow's Avatar
yellowSnow yellowSnow is offline Offline
Posting Whiz in Training

Re: gotxy function REPLY

 
0
  #4
Aug 3rd, 2009
Yep.

@OP: Go for MinGW or Codeblocks/MinGW package.
Manic twiddler of bits
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,951
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: gotxy function REPLY

 
0
  #5
Aug 3rd, 2009
The GCC does not supply gotoxy() with <conio.h>.

Since it is a Windows program, why not use the SetConsoleCursorPosition() function?

If you are using POSIX, let me know.
Reply With Quote Quick reply to this message  
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

Re: gotxy function REPLY

 
0
  #6
Aug 3rd, 2009
Originally Posted by 9868 View Post
gotoxy is not a standard C function, so you need other library for that.
can you tell me which library
thanks,...
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,951
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: gotxy function REPLY

 
0
  #7
Aug 3rd, 2009
Wow, look a gift horse in the mouth...

If the library that ships with your OS isn't sufficient, or you want something portable (which <conio.h> isn't, BTW), try NCurses.

For Windows: http://pdcurses.sourceforge.net/
For POSIX: http://www.gnu.org/software/ncurses/
Getting started: http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/
Reply With Quote Quick reply to this message  
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

Re: gotxy function REPLY

 
0
  #8
Aug 3rd, 2009
Originally Posted by Duoas View Post
Wow, look a gift horse in the mouth...

If the library that ships with your OS isn't sufficient, or you want something portable (which <conio.h> isn't, BTW), try NCurses.

For Windows: http://pdcurses.sourceforge.net/
For POSIX: http://www.gnu.org/software/ncurses/
Getting started: http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/
dear can u make a complete program because still i cant understand please
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,361
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1464
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: gotxy function REPLY

 
0
  #9
Aug 3rd, 2009
Originally Posted by furqankhyraj View Post
dear can u make a complete program because still i cant understand please
Read the tutorial in the last link he posted. If you can't understand that then you have no business attempting to write complicated programs; get yourself an Introduction to C++ programming book and start studying from page 1, not the back of the book.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC