i am a student taking c++ so i do not know that much about it yet.
but we had a homework assignment that i wrote code for but the first error i get is that is doesn't recognize stdafx.h when i try to include it here is the code can anyone help? i am using microsoft visual c++ 2008 express edition.
Code:#include "stdafx.h" #include <iostream>; using namespace std; using namespace System; int _tmain(int argc, _TCHAR* argv[]) { int city1 = 0; int city2 = 0; int averageTemp= 0; cout << "Enter the name of city 1:"; cin >> city1 cout << "Enter the name of city 2:"; cin >> city2 averageTemp = (city1 * city2)/2 cout << "the average temperature of the two cities is " << averageTemp << endl; return 0; }