could someone please tell me where i have made my error i hav included the error cod below the main program
Code:
#include <iostream>
#include <iomanip>
#include <C:\Documents and Settings\Pat\Desktop\school\prog14.cpp\prog14.cpp\empinfo.h.cpp>
using namespace std;
int main()
{
const int MAX = 25;
struct info employee[MAX];
int count = 5;
char (ret);
for (int i=0; i<=count; i++)
{
cout << "input Last Name:"<< endl;
cin.getline (employee[i].last1,25);
cout << "Input First Name:" << endl;
cin.getline (employee[i].first1,25);
cout << "Input payrate:" << endl;
cin >> employee[i].payrate;
cout << "Input Hours Worked:" << endl;
cin >> employee[i].hours;
cin.get (ret);
}
double wage[5];
for (int j=0; j<=count; j++)
{
wage[j] = employee[j].payrate * employee[j].hours;
}
cout << "Wage = " << wage << endl;
return 0;
}
1>c:\documents and settings\pat\desktop\school\prog14.cpp\prog14a.cpp \prog14a.cpp\prog14a.cpp(9) : error C2143: syntax error : missing ';' before 'using'
Code:
struct info
{
char last1 [25];
char first1 [25];
double payrate;
int hours;
}