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:
// 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>
usingnamespace std;
constdouble PI = 3.14;
constdouble 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;
}