473,387 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

What is the equivalent of gotoxy in C++?

50
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 written programs in C++
Dec 1 '07 #1
5 6447
weaknessforcats
9,208 Expert Mod 8TB
gotoxy(x,y) is a Unix/Linux C library function. It is not part of C++ and does not exist in the Windows world where it is rplcaed with other window navigation functions.
Dec 1 '07 #2
poopsy
50
gotoxy(x,y) is a Unix/Linux C library function. It is not part of C++ and does not exist in the Windows world where it is rplcaed with other window navigation functions.
by wat can i replace it then?
Dec 1 '07 #3
AHMEDYO
112 100+
HI..

you can replace it by using "WriteConsoleOutput" API Function, it declared in Windows.h Header File

Best Regards
Dec 1 '07 #4
scruggsy
147 100+
Or use SetConsoleCursorPosition().
Dec 2 '07 #5
Can u try this also

window(x,y). Window(40,80) but you include windows.h

Hope it helps.
Dec 3 '07 #6

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...
1
by: mohsin | last post by:
hi can anyone tell me the name of the header file for gotoxy function in visual c++ i know k turbo c main iss ki header file dos.h hootee hai but i dontknow in vc++
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:...
10
by: playagain | last post by:
Why I can't use the clrscr(); and gotoxy(); in some compilers?
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: Abhishek170 | last post by:
hello everyone, i'm just a beginner in C language. just wanted to ask wich include will i have to use while using gotoxy and clrscr or is there any link/site where i check all the functions in all...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.