0

Can we write #include<iostream>in computer??In our course we write #include<iostream.h>!!

16th Feb 2017, 4:56 AM
Yeshi Tsering
3 Respostas
+ 2
iostream.h is pre-standard C++. It means that when you do a #include <iostream.h>, the preprocessor shall search for the iostream.h file and then includes it in your program iostream is a standard header. It doesnt mean that it shall append a .h and then include iostream.h file. We used iostream.h before namespaces were introduced. So if you have a iostream.h file lying around, you can still include it. But it wont be in the std global namespace. You caan find detailed differences between iostream and iostream. h here :- http://members.gamedev.net/sicrane/articles/iostream.html
16th Feb 2017, 5:01 AM
Varun Moghe
Varun Moghe - avatar
0
we need to write #include<iostream.h> on computer to avoid error
16th Feb 2017, 5:02 AM
Fenil Shah
Fenil Shah - avatar
0
@Fenil not really
16th Feb 2017, 8:26 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar