开发者

No such file iostream.h when including [duplicate]

This question already has answers here: Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜