I'm having severe problems with my code. We are asked to take in the Vehicle name, tank size, and MPG. We are give the distance between the cities and are supposed to output the # of tankfuls required to make the ship. The errors I am getting are:
variable or field 'doOutput' declared vod
'int doOutput' redeclared as different kind of symbol
previous declaration of 'void doOutput
declaration of 'int doOutput'
conflicts with previous declaration 'void doOutput'
Then it tells me that Vehicle, MPG, and fillups are not declared on line 90 (were the function is supposed to be opened)
What is wrong? It seems to revolve around the redelcaration that is happening of doOutput. But why is it doing this?
using namespace std;
cout << "Welcome, please choose one of the following options" << '\n';
cout << '\n';
cout << "1. Enter the data!" << '\n';
cout << "2. Quit the Program!" << '\n';
cout << "Enter the choice you would like below: ";
cin >> choice;
cout << "DO IT AGAIN! I SAID PICK FROM THE CHOICES!!!" << '\n';