Is it compulsory to write .h with iostream inc++ | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
0

Is it compulsory to write .h with iostream inc++

4th Jan 2017, 5:16 PM
Dhruv Bhatnagar
Dhruv Bhatnagar - avatar
8 Respostas
+ 3
apologies as it seems that in modern implementations iostream is used without the .h. but some header files are still used with the .h.
4th Jan 2017, 5:35 PM
Jishnu Jayarajan
+ 1
yes, without. h it won't work. .h is to denote it as the header file
4th Jan 2017, 5:25 PM
Jishnu Jayarajan
+ 1
but in this app in no program .h is used
4th Jan 2017, 5:26 PM
Dhruv Bhatnagar
Dhruv Bhatnagar - avatar
+ 1
thanks.
4th Jan 2017, 5:36 PM
Dhruv Bhatnagar
Dhruv Bhatnagar - avatar
0
pl ans my other question also.
4th Jan 2017, 5:36 PM
Dhruv Bhatnagar
Dhruv Bhatnagar - avatar
0
this is caused by standardization of c++. As both types should work, but due to changes recent compiler versions might not support the .h types
4th Jan 2017, 5:42 PM
Jishnu Jayarajan
0
here in this app I think a newer compiler version is used which uses the iostream as the choice instead of iostream.h
4th Jan 2017, 7:26 PM
Jishnu Jayarajan
0
no its upto the compiler u use,in turbo c++ it doesn't wotk without .h
14th Jan 2017, 2:42 AM
lijo
lijo - avatar