I'm making a simple output into the console and it won't open, and then a window pops up. It says '"C:\Users\Aiden\Documents\Visual Studio 2013\Projects\ConsoleApplication3\Debug\ConsoleApplication3.exe"' is not recognized as an internal or external command,
operable program or batch file
Press any key to continue...
Code:
// ConsoleApplication3.cpp : Defines the entry point for the console application.
//
const int milesToTheMoon = 238857;
const double FUELBURNED = 19.1;
const int TANK = 500000;
milesTraveled = TANK / FUELBURNED;
distance = milesToTheMoon / milesTraveled;
cout "The " << shuttleName << " can travel " << milesTraveled << " miles on one tank of fuel." << endl;
cout << "It takes " << milesToTheMoon << " miles for the " << shuttleName << "to get to the Moon from Earth!" endl;
cout << "This will take " << distance << " tanks to get there." << endl << endl;
return 0;
}
I'm doing this off of an online course tutorial, and it isn't free so I can't show you the tutorial.