+ 2
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
plz reply I am very confused..
5 ответов
+ 1
#include<iostream.h> //For predefined header file
#include"HeaderFile" // For user defined header file
0
so how to make a header file in turbo , simply saving it with .h or any other method
0
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.
0
<iostream.h>
0
also you can use <conio.h> for various functions basically for clearing the screen conio,h header file is used, etc