Hello! I'm a newbie here...
Straight to the point, I tried to create a program as stated in the title above musing C++. Below are the code I used:
#include <iostream>
#include <cstdlib>
const board=8;
const pop=20;
using std::cout;
using std::endl;
double table[board][board];
int r;
int c;
int main()
{
// Initialize random number generator.
for(r=0; r<pop; r++)//row
{
for(c=0; c<board; c++)
table[r][c] = rand() % board-1;
}
cout << table[r][c] << endl; //display table
return 0;
}
but, it fail to link. the error was:
Linking...
LIBCD.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16
Debug/test2.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.test2.exe - 2 error(s), 0 warning(s)
can someone help me how to solve this..?