R
ratzeel
The following snippet code throws an error while compiling on SUN os..
Any idea how to resolve this...
#include <iostream.h>
#include <fstream.h>
#include <math.h>
#include <algorithm>
using namespace std;
..........
..........
fstream fp;
fp.open((*it).c_str(),ios::in); // Line 223
.......
.......
fp.open((*it).c_str(),ios::in); // Line 345
The error is as follows:
line 223: Error: The name fstream is ambiguous, fstream and
std::fstream.
line 345: Error: The name ios is ambiguous, ios and std::ios.
TIA, ratzeel
Any idea how to resolve this...
#include <iostream.h>
#include <fstream.h>
#include <math.h>
#include <algorithm>
using namespace std;
..........
..........
fstream fp;
fp.open((*it).c_str(),ios::in); // Line 223
.......
.......
fp.open((*it).c_str(),ios::in); // Line 345
The error is as follows:
line 223: Error: The name fstream is ambiguous, fstream and
std::fstream.
line 345: Error: The name ios is ambiguous, ios and std::ios.
TIA, ratzeel