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!
using namespace std;
int * aptr = arr;
for (aptr = arr; aptr<=&arr;aptr++)
*aptr = rand() % 41;
cout << *aptr << '\t' << aptr << endl;