For some reason I keep getting the following error:
error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
I'm sure it's a quick fix but I can't find a way around it. I tried re creating the project because I know sometimes that works, but it didn't.
Here's the code.
Please help me fix it. I'm almost done!Code:#include "stdafx.h" #include <cstdlib> #include <ctime> #include <iostream> using namespace std; void fct() { int arr[10]; int * aptr = arr; srand((unsigned int)time(0)); for (aptr = arr; aptr<=&arr[9];aptr++) { *aptr = rand() % 41; cout << *aptr << '\t' << aptr << endl; } }



LinkBack URL
About LinkBacks



