//Error1error C2601: 'computeBestHotelBestMonth' : local function definitions are illegale:\project 3\prj 3b.cpp90
//Error2fatal error C1075: end of file found before the left brace '{' at 'e:\project 3\prj 3b.cpp(68)' was matchede:\project 3\prj 3b.cpp104
#include %26lt;iostream%26gt;
#include %26lt;fstream%26gt;
using namespace std;
const int HOTELS = 5;
const int MONTHS = 12;
void displayGuests(int[HOTELS][MONTHS]);
int computeYearlyHotelGuest(int[HOTELS][MONT...
int computeBestHotelInAMonth(int totalguests[HOTELS][MONTHS]);
void computeBestHotelBestMonth(int totalguests[HOTELS][MONTHS], int%26amp;, int%26amp;);
int main ()
{
ifstream infile;//input file object
infile.open("E:\\hoteldata.txt");//ope... the file
int totalguests[HOTELS][MONTHS];
int g[HOTELS][MONTHS];
for (int i = 0; i %26lt; 5; i++)
for (int j = 0; j %26lt; 12; j++)
infile%26gt;%26gt;totalguests[i][j];
int besthotel;
int bestmonth;
displayGuests(totalguests);
computeYearlyHotelGuest(totalguests);
computeBestHotelInAMonth(g);
I need help with the errors in this program?
check your settings in my opion or call teck and suom your. isp. provider. you might need to . my opion?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment