1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
customerNumber++) { // A-1-3-097
hoursParkedByCustomer[customerNumber-1] = 1 + rand() % c_maximumHoursParked;// A-1-3-098
} // for // A-1-3-099
} // function getDailyParkingActivity // A-1-1-44
int getDefaultChargeColumnWidth() { // A-1-1-45
return c_defaultChargeColumnWidth; // A-1-3-100
} // function getChargeColumnWidth // A-1-1-46
int getHoursParkedColumnWidth() { // A-1-1-47
return c_hoursParkedColumnWidth; // A-1-3-101
} // function getHoursParkedColumnWidth // A-1-1-48
int getInterColumnWidth() { // A-1-1-49
return c_interColumnWidth; // A-1-3-102
} // function getInterColumnWidth // A-1-1-50
int getParkingChargeColumnWidth() { // A-1-3-51
return c_parkingChargeColumnWidth; // A-1-3-103
} // function getParkingChargeColumnWidth // A-1-1-52
}; // class Garage // A-1-1-53
int main() { // A-1-5-01
Garage myGarage; // A-1-5-02 TODO
string enterKey; // A-1-5-03
cout << "\nTask 09-02, Ch06, Programmed by Andrya Newman"; // A-1-5-04
myGarage.prepareDailyReceiptsReport(); // A-1-5-05 TODO
cout << ("\n\nEnd of Program: Press <Enter> to exit program."); // A-1-5-06
getline(cin, enterKey); // A-1-5-07
} // function main // A-1-5-08
|
Can someone tell me what is wrong because I have errors that say:
1>c:\csis 123\task_09_02_ch06\task_09_02_ch06\garage.cpp(95): error C3861: 'displayReportSummaryLine': identifier not found
1>c:\csis 123\task_09_02_ch06\task_09_02_ch06\garage.cpp(99): error C3861: 'displayReportSummaryLine': identifier not found
1>c:\csis 123\task_09_02_ch06\task_09_02_ch06\garage.cpp(135): warning C4804: '>=' : unsafe use of type 'bool' in operation
1>c:\csis 123\task_09_02_ch06\task_09_02_ch06\garage.cpp(149): error C2146: syntax error : missing ')' before identifier 'parkingCharge'
1>c:\csis 123\task_09_02_ch06\task_09_02_ch06\garage.cpp(149): error C2059: syntax error : ')'
1>c:\csis 123\task_09_02_ch06\task_09_02_ch06\garage.cpp(163): error C2562: 'Garage::calculateCustomerParkingCharge' : 'void' function returning a value
1> c:\csis 123\task_09_02_ch06\task_09_02_ch06\garage.cpp(119) : see declaration of 'Garage::calculateCustomerParkingCharge'
1>c:\csis 123\task_09_02_ch06\task_09_02_ch06\garage.cpp(219): error C2065: 'reportSummaryLabel' : undeclared identifier
1>c:\csis 123\task_09_02_ch06\task_09_02_ch06\garage.cpp(219): error C2228: left of '.length' must have class/struct/union
1> type is ''unknown-type''
1>c:\csis 123\task_09_02_ch06\task_09_02_ch06\garage.cpp(225): error C2065: 'reportSummaryLabel' : undeclared identifier
1>c:\csis 123\task_09_02_ch06\task_09_02_ch06\garage.cpp(229): error C2065: 'reportSummaryLabel' : undeclared identifier
1>c:\csis 123\task_09_02_ch06\task_09_02_ch06\garage.cpp(227): error C3861: 'reportSummaryLabel': identifier not found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========