error in iostream.h DEV C ++

1

When I compile my code I get an error

  

"NO SUCH FILE OR DIRECTORY"

Marks it on the <iostream.h> line. Can someone help me solve it?

    
asked by Alessandro Garcia 09.06.2017 в 03:09
source

2 answers

4

iostream.h , is a C ++ pre-standardization library, in 1998.

I do not think that today there are still many platforms that support it, but it is possible to find it in legacy code. After standardization, standard libraries do not carry h, in this case, the appropriate library would be <iostream> . As a general rule, you should not include any standard library with .h . To include C libraries, use the new versions, which encapsulate the code in the namespace std . For example: <stdio.h> - > <ctsdio> , <stdlib.h> - > <cstdlib> .

    
answered by 09.06.2017 в 15:33
2

The files in the standard C ++ header do not have an extension . Try this:

#include <iostream>
    
answered by 09.06.2017 в 08:45