473,473 Members | 2,054 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

what is the use of gotoxy() in c

1 New Member
i am getting unable to find the answer that how gotoxy() is used in c
Sep 8 '10 #1
2 5558
Nepomuk
3,112 Recognized Expert Specialist
Hi!

Put the following code into a file, save, compile, run, see what it does.
Expand|Select|Wrap|Line Numbers
  1. #include <conio.h>
  2. #include <stdio.h>
  3.  
  4. int main(void) {
  5.   int i;
  6.   printf("This is the first line.\n");
  7.   gotoxy(10,4);
  8.   printf("This is the second line.\n");
  9.   gotoxy(20,8);
  10.   printf("And this is line 3.\n");
  11.   return 0;
  12. }
If it doesn't work, you're probably not using a Windows/DOS machine. In that case, you'll have to implement your own gotoxy function, as was done here.

Greetings,
Nepomuk
Sep 8 '10 #2
donbock
2,426 Recognized Expert Top Contributor
gotoxy() is not in the Standard C Library; thus there is no standard definition of what it does. Functions of the same name from different sources probably do different things. (For example, every main() function does something different.) Where did your gotoxy() function come from?
Sep 8 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: tigui1984 | last post by:
Hi there, I work on a little project and something is still missing to me... I don't know how to make a gotoxy and a cprintf ( this 2 command is from de C language)... is there any other command...
4
by: Teo81 | last post by:
Hi! I'm using visual studio 6.0 and I need to interact with DOS console. I know the conio.h library but, under visual studio, it doesn't provide useful functoins like gotoXY( int, int ) etc.... My...
3
by: Asad | last post by:
Hi All, I would like to plot some point on screen in C++. I am working on Linux platform and unable to use gotoxy(row,col); Which would have reduced my work. Any ways, Do anybody know how do I...
5
by: Deep | last post by:
Is there any alternative for gotoxy and similar functions in gcc??
6
by: arunk8186 | last post by:
Hi friends, When I compiled a program in which I have used gotoxy function in C , I get an error as "C:\Documents and Settings\e373616\Desktop\H1.cpp(58) : error C2065:...
26
by: Albert | last post by:
Hi Are there any definitions of the gotoxy function on the internet. My compiler doesn't define it in any header Albert
5
by: poopsy | last post by:
hi all i wud like to know wat is the equivalent of gotoxy(x,y) in C++?? i found that in many codes on the net wat's the function of gotoxy..can sumbody plz explain i've never done C, ive always...
2
by: naughtysriram | last post by:
what are the equivalent library functions found in conio.h (turbo c++) for other gnu c++ variations.. i need functions like gotoxy(), clrscr(), getch()...etc. thanks in advance
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.