Menu

The use of function gotoxy()

2007-01-10
2012-09-26
  • Nobody/Anonymous

    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

     
    • Nobody/Anonymous

      ...and Wayne!

       
    • Anonymous

      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.

      >> 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

       
    • Wayne Keen

      Wayne Keen - 2007-01-10

      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

       
    • Nobody/Anonymous

      Thank a lot for the help, Clifford!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.