This SHOULD be good. At least it works,
Code:
#include <iostream>
#include <iomanip>
using namespace std;
double commission (double actualsales, double basesales, double compercent);
int main (){
//the int main has begun
string name;
string buff;
int number;
double basepay, compsales, printsales, compcom, printcom, totalcom, totalpay;
cout << "Welcome to the APSU Computer Company Commission Statement program!" << endl;
while(true){
cout << "Please Enter Salesperson's Identification or -999 to terminate." << endl;
getline(cin,buff);
number=strtol(buff.c_str(),NULL,10);
if(number==-999){
break;
}
cout << "Please Enter Salesperson's Name." << endl;
getline (cin, name);
cout << "Please Enter Salesman Base Salary." << endl;
getline(cin,buff);
basepay=strtod(buff.c_str(),NULL);
cout << "Please Enter Personal Computer Sales." << endl;
getline(cin,buff);
compsales=strtod(buff.c_str(),NULL);
cout << "Please Enter Printer Sales." << endl;
getline(cin,buff);
printsales=strtod(buff.c_str(),NULL);
}
return 0;
}