No such file iostream.h when including [duplicate]
Possible Duplicate:
Where to get iostream.h
I am trying to compile the AVL tree example here. But when I typed make it says fatal error: iostream.h: no 开发者_运维百科such file. I think the code is implemented using c library since it ended with .h but why couldn't it find this file? Is it depreciated?
Try #include <iostream>
instead.
In the new compiler, you do not need .h suffix use below instead.
#include <iostream>
Yes, it is deprecated. STL file names have no extension, so you should write #include <iostream>
instead.
精彩评论