I keep getting the error messages
Error 1 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup MSVCRTD.lib
and
Error 2 fatal error LNK1120: 1 unresolved externals C:\Documents and Settings\Mike\My Documents\Visual Studio 2005\Projects\Assignment3MJB\Debug\Assignment3MJB. exe 1
I have absolutely no idea what they mean, please help.
This is my code so far
Code:
#include<iostream>
#include<iomanip>
#include<string>
#include<cmath>
#include<fstream>
#include<stdio.h>
#include<cctype>
using namespace std;
void input(char employee[100][100], int hours[7][100], float payrolldata[100][100], double&& r, int&& l, int&& d);
int main()
{
char employee[100][100];
int hours[7][100];
float payrolldata[100][100];
double r;
int l=0;
int d=0;
input(employee, hours, payrolldata, r, l, d);
return 0;
}
void input(char employee[100][100], int hours[7][100], float payrolldata[100][100], double&& r, int&& l, int&& d)
{
char tempname[100];
int l, d, m, t, w, h, f, s, u;
cout <<"Hello, Please enter the following information for the Payroll Report." <<endl;
cout << "Name: ";
cin.get(tempname, 30, '\n');
strcpy(employee[y], tempname);
cout << endl << "Hours worked per day: ";
cin >> m >> t >> w >> h >> f >> s >> u;
hours[0][y] = m;
hours[1][y] = t;
hours[2][y] = w;
hours[3][y] = h;
hours[4][y] = f;
hours[5][y] = s;
hours[6][y] = u;
cout << endl << "Pay rate:";
cin >> r;
cout << endl << "Dependents: ";
cin >> d;
cout << endl << "Health(y/n): ";
cin >> l;
}