J
Joseph Lu
Hi,all
I have code like the following lines, but when I compile this program I
got a: error C2563 : 'ios' : is not a class or namespace name!
//--Code starts here
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <iomanip>
... ...
fstream fFile;
fFile.open("c:\testfile.dat",ios::binary|ios::in,0);
fFile<<"XXX";
fFile.seekp(dwBlockSize,ios::beg);
//--Code ends here
ERROR OCCURED --> error C2653: 'ios' : is not a class or namespace name
Could anybody tell me why, thanks a lot
Joseph
I have code like the following lines, but when I compile this program I
got a: error C2563 : 'ios' : is not a class or namespace name!
//--Code starts here
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <iomanip>
... ...
fstream fFile;
fFile.open("c:\testfile.dat",ios::binary|ios::in,0);
fFile<<"XXX";
fFile.seekp(dwBlockSize,ios::beg);
//--Code ends here
ERROR OCCURED --> error C2653: 'ios' : is not a class or namespace name
Could anybody tell me why, thanks a lot
Joseph