New to programming with Visual Studio 2010

Hello everyone, I am brand new to programming and I'm having an issue with Visual Studio 2010. When I compile my code online it comes out the way it's supposed to but when I try to compile with VS I get an error. I'm getting squigglies under #include "stdafx.#h" and _TCHAR*. Here is my code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// circlearea.cpp : Defines the entry point for the console application.
// This program will output the circumference and area 
// of the circle with a given radius.

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

using namespace std;

const double PI = 3.14;
const double RADIUS	= 5.4;

int _tmain(int argc, _TCHAR* argv[])

{
	float area;						//definition of area of circle
	float circumference;			//definition of circumference
	circumference = 2*PI*RADIUS;	//computes circumference
	area = PI*(RADIUS*RADIUS);		//computes area

	cout << "The circumference of your circle is "<< circumference << endl;
	cout << "The area of your circle is "<< area << endl;

	return 0;
}

Last edited on
It must be #include "stdafx.h" .
Oh wow, I'm an idiot. Thank you so much. I was going insane
Topic archived. No new replies allowed.