+ 3

PLEASE HELP.. BASIC C++

1.Why some use #include<iostream.h> instead of #include<iostream> 2.why #include<conio.h> is used? 2.why #include<conio.h> and <iostream.h> is not running in this app?

14th Jun 2017, 4:15 PM
VIVEK SASIDHARAN
VIVEK SASIDHARAN - avatar
6 Answers
+ 1
1. Earlier (around 2005) header files where suffixed with extention '.h'. Now it is no need to use it. 2. Compiler doesn't know what is cout, cin, void, main, int, etc. Header files are those which explains the compiler what are those codes which we use in programs. <iostream> explains the compiler what is cout, cin, etc. <conio> explains the compiler what is clrscr(), getch(), etc. and #include says the compiler to refer the header files enclosed within<>. 3. If you see inside an header file what it contains. It goes on and on. It is so complicated that it must be inbuilt in the software. Otherwise it might be so difficult to code even for a simple program. It seems that this software of this application doesn't have that header file named <conio>.
15th Jun 2017, 6:46 AM
Sanket Pawar
Sanket Pawar - avatar
+ 5
I think it differ because they use different compiler
14th Jun 2017, 3:35 PM
Kenshin Himura
Kenshin Himura - avatar
+ 4
hey what is happing here ....the question is asked just 34 mins back ......& the ans is given 1hr back ........it means ans is given before ques .... 😂😂😂😂😜😜😜
14th Jun 2017, 4:53 PM
#Happy@777
#Happy@777 - avatar
+ 2
Header file with ". h" is an older style to include header file... so it may still work on some compilers. Header files are included in order to use the functions or class defined on it. For instance we use iostream to use "std::cout"
15th Jun 2017, 1:36 AM
Bishal Sarang
Bishal Sarang - avatar
+ 1
for including some new libraries and functions and some new features we use this instead of that
14th Jun 2017, 8:08 PM
Siddhant Gahtori
Siddhant Gahtori - avatar
+ 1
It's old style and this is new update of c++ in which we use #include<iostream> instead of #include<iostream.h>
15th Jun 2017, 6:31 AM
VINOD KUMAR
VINOD KUMAR - avatar