#include <iostream>
main() {
int employeeid;
int hoursworked;
float hourlyrate, grosspay;
cout << "ENTER THE EMPLOYEE ID: ";
cin >> employeeid;
cout << "ENTER THE HOURS WORKED: ";
cin >> hoursworked;
cout << "ENTER THE HOURLY RATE: ";
cin >> hourlyrate;
grosspay = hoursworked * hourlyrate;
cout << "EMPLOYEE ID IS " << employeeid << endl;
cout << "THE HOURS WORKED ARE " << hoursworked << endl;
cout << "THE HOURLY RATE IS " << hourlyrate << endl;
cout << "THE GROSSPAY IS " << grosspay << endl;
return 0;
}//MAIN
I am running the program in xcode.....command line utility....c++ tool
where do i place the numbers (id, hours worked, hourly rate)to recieve an output (build and run)
p.s I also get an error message, when i try, next to main() { saying "warning ISO C++ forbids declaration of 'main' with no type
I am lost.