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?
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?
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>
.
The files in the standard C ++ header do not have an extension . Try this:
#include <iostream>