answersLogoWhite

0


Best Answer

It's in conio.h, but don't use gotoxy. Use SetCursorPosition() instead.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which header file is used for gotoxy function in turbo c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you include mysql header file in to turbo C to make connection?

Standard C does not provide such a function; it does not even require you to have an internet connection.


Which header file has clrscr function?

conio.h


What are the header file of scanf function?

stdio.h


Which header file must be included to use the function pow?

The std::pow() function can be found in the <cmath> header.


What is the header file for string library function?

string.h


Is header file the library file?

No. Header files are those which contains declaration part of function & library files are those which contains definition part of function. These are those functions which we called in our program by using header files.


What is the header file for gotoxy in c?

There is no such function as gotoxy(). It was originally a standard function in conio.h, used to set the console cursor position, but it was deprecated because it was non-portable. While it may still exist in older C compilers, its usage would be frowned upon today and no known C or C++ compiler should support such a function these days. You are free to "roll your own" version of the function, of course. The following version works on Windows only. But given how little it actually adds to what already exists, and its non-portable nature it hardly seems worthwhile. #include <stdio.h> #include <conio.h> #include <windows.h> // Standard version: void gotoxy( COORD c ) { SetConsoleCursorPosition( GetStdHandle( STD_OUTPUT_HANDLE ), c ); } // Overloaded version emulating original gotoxy function: void gotoxy( int x, int y ) {COORD c;c.X = x;c.Y = y; gotoxy( c ); // call standard version }


How do you design inline function as a member function?

You define the function at the same time you declare it, usually in the header file, sometimes in an .hpp file.


How do you correct the C plus plus programming error missing function header?

You need to #include the header file that contains the missing function's declaration.


What is the header file for swap function?

#include<stdio.h> Another answer: Nothing.


How do you create a user defined header file?

Header files are not much different from usual cpp files. There are basically two different things. It's file extension: you need to choose "header file" when you create it or save as .h file. Second is header files do not have main() function. When you are done with you header file do not forger to include it in your project by writing preprocessor directive:#include "your_header_file.h"


Why you use header file namely stdlib?

It contains useful function-prototypes.