Question: Please help fix the problem. Using linux to compile and run the program (C). CODE: #include const int SIZE = 100; struct Employee { char

Please help fix the problem. Using linux to compile and run the program (C).

CODE:

#include const int SIZE = 100;

struct Employee { char last_name[SIZE]; double pay_rate; };

void printPayroll(Employee list[], int count) { int i; printf("*** PAYROLL *** "); for (i = 0; i

void createPayroll(Employee list[], int& count) { int i; printf("how many employees? "); scanf("%d", &count); for (i = 1; i

int main() { Employee list[SIZE]; int const = 0;

createPayroll(list, count); printPayroll(list, count); return 0; }

RESULT:

Please help fix the problem. Using linux to compile and run the

gcc labla.cpp -o prog labla.cpp: In function 'int main()': labla.cpp:34:12: error: expected unqualified-id before int const = 0; token labla.cpp:36:22: error: 'count' was not declared in this scope createPayroll(list, count)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!