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

2nd Mar 2017, 8:57 AM
Aryan nath
Aryan nath - avatar
5 Respostas
+ 1
#include<iostream.h> //For predefined header file #include"HeaderFile" // For user defined header file
2nd Mar 2017, 3:13 PM
Sandeep Mallya
Sandeep Mallya - avatar
0
so how to make a header file in turbo , simply saving it with .h or any other method
3rd Mar 2017, 4:04 AM
Aryan nath
Aryan nath - avatar
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.
4th Mar 2017, 5:13 PM
Sandeep Mallya
Sandeep Mallya - avatar
0
<iostream.h>
19th Mar 2018, 2:39 PM
jayesh mahale
jayesh mahale - avatar
0
also you can use <conio.h> for various functions basically for clearing the screen conio,h header file is used, etc
19th Mar 2018, 2:41 PM
jayesh mahale
jayesh mahale - avatar