How to write a header file in turbo c++ and is it necessary to use a header file when we can just use a class within soure code
5 Answers
New Answer5 Answers
New Answer#include<iostream.h> //For predefined header file #include"HeaderFile" // For user defined header file
Simply enter the required data in a file and save the file in BIN folder where you have installed your Turbo C++ IDE. Then using #include"My HeaderFile" load it in program. NOTE: Don't save the file as .h as it can cause syntax error as it is a user defined header. The .h extension is only for pre defined header file that comes with the Turbo C++ IDE while installing it.
also you can use <conio.h> for various functions basically for clearing the screen conio,h header file is used, etc
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message