Hey i got some problem too :
Code:
//Main.cpp
#include <iostream.h>
#include <fstream.h>
#include "test.h"
int main()
{
write();
return 0;
}
Code:
//test.h
#include <fstream.h>
#include <iostream.h>
fstream file;
int write()
{
int x=0;
file.open("G:\temp\test.txt", ios::out);
file << "testing" << endl;
file >> x;
cout << x;
file.close;
return 0;
}
When i compile this i got :
Code:
3 G:\Dev-Cpp\InOut.cpp In file included from G:\Dev-Cpp\InOut.cpp
G:\Dev-Cpp\test.h In function `int write()':
16 G:\Dev-Cpp\test.h statement cannot resolve address of overloaded function
How to fix it?
Ty