English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

//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
#include
using namespace std;
const int HOTELS = 5;
const int MONTHS = 12;
void displayGuests(int[HOTELS][MONTHS]);
int computeYearlyHotelGuest(int[HOTELS][MONTHS]);
int computeBestHotelInAMonth(int totalguests[HOTELS][MONTHS]);
void computeBestHotelBestMonth(int totalguests[HOTELS][MONTHS], int&, int&);

int main ()
{
ifstream infile;//input file object
infile.open("E:\\hoteldata.txt");//open the file
int totalguests[HOTELS][MONTHS];
int g[HOTELS][MONTHS];
for (int i = 0; i < 5; i++)
for (int j = 0; j < 12; j++)
infile>>totalguests[i][j];
int besthotel;
int bestmonth;

displayGuests(totalguests);
computeYearlyHotelGuest(totalguests);
computeBestHotelInAMonth(g);

2006-12-17 18:31:57 · 1 answers · asked by GC 1 in Computers & Internet Programming & Design

1 answers

check your settings in my opion or call teck and suom your. isp. provider. you might need to . my opion?

2006-12-17 18:42:15 · answer #1 · answered by the_silverfoxx 7 · 0 0

fedest.com, questions and answers