i write one programm in vc++ but the compiler say that i use ambiguous
symbol,i donīt know why ? how can do to tell the compiler that is ok
so ? i become this error message:
error C2872: 'ifstream' : ambiguous symbol
error C2872: 'ofstream' : ambiguous symbol
error C2065: 'fileread' : undeclared identifier
error C2228: left of '.open' must have class/struct/union type
error C2228: left of '.eof' must have class/struct/union type
there is my sourcecode.
i should be very if i become some idee.
thank 4 u help
#ifndef _XML_H
#define _XML_H
#include<fstream.h>
#include<string>
using namespace std;
class XML
{
private:
ifstream fileread;
ofstream filewrite;
public:
// For reading file and inserting the key and value pairs into
XML file
static void readfile(char *infile,string key1,string
text1,string str_value,string val);
// Function for converting the function parameters into XML file
static void writeXML(char *infile,string val,char *path);
// retrieving the value
string getValue(char *infile,char *path);
};
#endif // _XML_H