Why is 'iostream' not accepted instead of 'iostream.h' in some versions? How are they different? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Why is 'iostream' not accepted instead of 'iostream.h' in some versions? How are they different?

22nd Oct 2016, 6:49 AM
Harsha
Harsha - avatar
3 ответов
+ 1
.h which means header is the old method. it belongs to c era. <stdio.h> for example does the same in c. but as in c++ it drops the .h part and changes name to <iostream>. it's about the object oriented philosophy of c++ and implementing more advanced input output definitions. C++ was meant to enter the OOP era.
22nd Oct 2016, 7:58 AM
Sasan Moshirabadi
0
.h is old.
22nd Oct 2016, 7:42 AM
赵阳
赵阳 - avatar
0
u r right
22nd Oct 2016, 8:27 AM
Anuj kaushik
Anuj kaushik - avatar