N
NewToCPP
I am having some trouble including "iostream" "fstream" to my code.
I tried the following ways and base times it did not work. What is the
problem?
test.cc:
=======
.....
#include <iostream.h>
#include <fstream.h>
......
test.cc:9: fstream.h: No such file or directory
test.cc:9: fstream.h: No such file or directory
test.cc:
=======
.....
#include <iostream>
#include <fstream>
using namespace std;
using std::cout;
......
.....
test.cc:9: fstream.h: No such file or directory
test.cc:9: fstream.h: No such file or directory
I tried the following ways and base times it did not work. What is the
problem?
test.cc:
=======
.....
#include <iostream.h>
#include <fstream.h>
......
test.cc:8: iostream.h: No such file or directoryg++ test.cc
test.cc:9: fstream.h: No such file or directory
test.cc:8: iostream.h: No such file or directorygcc test.cc
test.cc:9: fstream.h: No such file or directory
test.cc:
=======
.....
#include <iostream>
#include <fstream>
using namespace std;
using std::cout;
......
.....
test.cc:8: iostream.h: No such file or directoryg++ test.cc
test.cc:9: fstream.h: No such file or directory
test.cc:8: iostream.h: No such file or directorygcc test.cc
test.cc:9: fstream.h: No such file or directory