+ 2

What's the difference between <iostream> and<iostream.h> ?

15th Feb 2017, 6:22 AM
Bhavya Sharma
Bhavya Sharma - avatar
2 Respostas
+ 1
For most compilers (unless it's really old) <iostream.h> is deprecated use <iostream>
15th Feb 2017, 6:27 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
iostream and iostream.h are different header files, in fact. iostream.h is not part of the standard library while iostream is. Somewhere along the line when iostream was added, it was decided not to remove the older iostream.h header for backwards compatibility purposes.
15th Feb 2017, 7:39 AM
R- Ry
R- Ry - avatar