Reply
Fri 15 Oct, 2010 12:30 pm
This is suppose to be a program to prompt someone to calculate their commission. This is what I have:
#include <iostream>
using namespace std;
int main(){
double commission, rate, week1, week2, returns;
cout << "enter commission rate";
cin >> rate;
cout << "enter week 1 earnings";
cin >> week1;
cout << "enter week 2 earnings";
cin >> week2;
commission = rate * (week1 + week2 - returns);
system "pause";
return 0;
}
The errors that I have are:
error C2143: syntax error : missing ';' before 'string'
and
warning C4551: function call missing argument list
@Random5185,
I haven't doe this a long while but . . .
Just off the top of my head, shouldn't the arguments to the system call be
in parentheses?
The variable returns is not initialized.