+ 2

I think instead of #include<iostream> ,it should be #include<iostream.h> ??

6th Jan 2018, 10:47 AM
Akanksha Yadav
Akanksha Yadav - avatar
4 Answers
+ 3
<iostream.h> is an old standard header file that is obsolete in today's C++ compilers. <iostream> is now the new standard for today's C++ compilers. Just like <cstring> is used instead of <string.h> and <cstdio> replaces <stdio.h> and <cctype> replaces <ctype.h>. Unless you are using a older compiler , it is best to always choose <iostream> over the older standard <iostream.h>. You can't go wrong with that logic.
7th Jan 2018, 5:26 AM
Rick Zalman
+ 6
The C++ standard obsoleted <iostream.h> infavor of <iostream>. There is no guarantee the former is available and it certainly will not have been updated.
6th Jan 2018, 10:57 AM
John Wells
John Wells - avatar
+ 3
thankyou very much for your help 😊
7th Jan 2018, 9:10 AM
Akanksha Yadav
Akanksha Yadav - avatar
0
iostream.h is c language writing stylein c++ we usually lost .hevery head file is.
6th Jan 2018, 3:04 PM
wang