Im trying to develop a program that will ask the user to enter the beginning and ending mileage submitted by sales people. From this data determine the total miles traveled and the mileage expense based on a rate of .42 per mile.
the input is salesman name, beginning mileage and ending mileage
this is what im tying to make
Your equation to determine the total number of miles traveled is wrong.
double main()
This is fantastically wrong and an error I don't think I've seen before. Where did you get it? In correct C++ code, main() returns an int, always always always.