Does anyone know how to use the gotoxy() function in C++? What are the source codes for it?
Are there any alternatives for it?
Note: It's not included in the standard library of DevC++.
Thanks a lot!
A DevC++ user
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-01-10
>> What are the source codes for it?
It is a function dating back to Borland DOS compiler libraries. It is about time you moved on perhaps ;-). An emulation of te Borland conio library is available here: http://www14.brinkster.com/aditsu/console/ I suggst that you take teh source code distribution and re-build the static library, or simply add teh source to your project.
>> Note: It's not included in the standard library of DevC++.
That is because it is a Borland proprietary function not an ISO standard function. You cannot expect it to be portable.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Note also that the terminonlogy of "the standard library of Dev-C++"
can indicate an understanding that can make things harder for you
when you search for things. Dev-C++ is just a fancy editor - the
compiler is GCC, which runs on windows through the magic of a tool
called MinGW.
This is not a pedantic point. When you go looking for things like
libraries etc., knowing what the compiler is really helps.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,folks:
Does anyone know how to use the gotoxy() function in C++? What are the source codes for it?
Are there any alternatives for it?
Note: It's not included in the standard library of DevC++.
Thanks a lot!
A DevC++ user
...and Wayne!
>> What are the source codes for it?
It is a function dating back to Borland DOS compiler libraries. It is about time you moved on perhaps ;-). An emulation of te Borland conio library is available here: http://www14.brinkster.com/aditsu/console/ I suggst that you take teh source code distribution and re-build the static library, or simply add teh source to your project.
>> Are there any alternatives for it?
Yes teh Win32 console API: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/console_functions.asp Take a look at the source for teh conio library above to see how to use it.
>> Note: It's not included in the standard library of DevC++.
That is because it is a Borland proprietary function not an ISO standard function. You cannot expect it to be portable.
Clifford
Note also that the terminonlogy of "the standard library of Dev-C++"
can indicate an understanding that can make things harder for you
when you search for things. Dev-C++ is just a fancy editor - the
compiler is GCC, which runs on windows through the magic of a tool
called MinGW.
This is not a pedantic point. When you go looking for things like
libraries etc., knowing what the compiler is really helps.
Wayne
Thank a lot for the help, Clifford!