Error C1083: Cannot open precompiled header file:'Debug\(What I named the file).pch
I can't compile this due to the error listed. I usually don't use this template for writing so I'm not familiar with it. I don't see how a header file can be missing if it was there when I choose new project then click clr under visual c++ then clr console application.
Code:
#include "stdafx.h"
using namespace System;
enum class Months {January=1, February, March, April, May, June, July, August, Semptember, October, November, December};
int main(array<System::String ^> ^args)
{
Months::month = Months::January;
int value = safe_cast<int>(month);
for(int x=1; x<13; x++){
Console::WriteLine(L"The numerical value of {0} is {1}", month, value);
month++;
}
return 0;
}