Visual Studio 2013 Build Failing

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.
//

#include "stdafx.h"
#include <iostream>
#include <string>

using namespace std;


int _tmain(int argc, _TCHAR* argv[])
{
string shuttleName = "Apollo 420";
double distance = 0;
double milesTraveled

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.
I'm not sure about the error you are getting, but double check your cout statements, there are quite a few syntax errors there.

You are also missing some semicolons.

Good luck.
What are the syntax errors? I just started so I'm confused. Thank you for responding :)
EDIT: I found them now, thanks!
Last edited on
IT WORKS!! THANK YOU SO MUCH!
Topic archived. No new replies allowed.