tags:

views:

112

answers:

2
#include <iostream>
#include <cstdlib>
using std::cout;
using std::endl;
using std::rand;
int man(){


    int t=rand();
    cout<<t<<endl;


     return 0;
}

here is code for generate random number in c++ and i have mistake

1>c:\users\david\documents\visual studio 2010\Projects\random_function\Debug\random_function.exe : fatal error LNK1120: 1 unresolved externals

please help

+8  A: 

Change man() to main().

SLaks
+7  A: 

Me, I think I'd change "man" to "main" and see what happens...

PSUnderwood