Ok, classes are confusing me alot. here some code, and I will give you the error. I'm not entirely sure what is wrong with it, but maybe you can help.
Code:
#include<iostream>
#include<fstream>
#include<string>
#include<cstdlib>
using namespace std;
class employee
{
public:
string lname;
string fname;
string address;
string city;
string state;
string zip;
char hos;
int payrate;
int hours;
int dependents;
int gpay;
int fed;
int state1;
int social;
int net;
int compute(int payrate, int hours, int dependents, int gpay, int fed, int state1, int social, int net, char hos);
};
employee::employee();
int main()
{
char in[20];
char out[20];
cout<<"Enter the name of the file you want to write to.";
cin.get(out, 20);
cin.ignore(80, '\n');
cout<<"Enter the name of the file you want to read from.";
cin.get(in, 20);
cin.ignore(80, '\n');
ifstream infile;
infile.open(in);
ofstream outfile;
outfile.open(out);
employee::compute(int payrate, int hours, int dependents, int gpay, int fed, int state1, int social, int net, char hos);
infile.close();
outfile.close();
return 0;
}