Why we put .h in it <iostream.h> | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
- 1

Why we put .h in it <iostream.h>

i mean that why we put .h in < iostream.h>

22nd Oct 2016, 8:05 PM
Rohit Gupta
Rohit Gupta - avatar
5 Respostas
+ 4
At least for my compiler, you don't actually need the '.h'; you can just use <iostream>
22nd Oct 2016, 8:35 PM
Zeke Williams
Zeke Williams - avatar
+ 2
iostream.h is deprecated by those compilers that provide it, iostream is part of the C++ standard. Anyway <iostream.h> is old and some compilers does not support it
22nd Oct 2016, 11:26 PM
–ź—Ü–į –°—Ä–Ī–ł—ė–į
–ź—Ü–į –°—Ä–Ī–ł—ė–į - avatar
0
it isn't necessary
30th Oct 2016, 1:35 PM
Varun
0
.h is for C
30th Oct 2016, 1:36 PM
Varun
- 2
it's a library function. with out it you can't run your program
22nd Oct 2016, 8:58 PM
Emeka John
Emeka John - avatar