error C2064: term does not evaluate to a function taking 0 arguments
And the function is:
int main()
{
//int n = 3000;
srand((unsigned)time(0));
int rand;
int lowest=1, highest=3;
int range=(highest-lowest)+1;
for(int index=0; index<20; index++)
{
//a1 = mvx1;
//b1 = mvy1;
rand = lowest+int(range*rand()/(RAND_MAX + 1.0));
cout << rand << endl;
}
}
- So does anyone see the problem? I can't find it yet. Thanks.
Admin Edit: Please use code tags when posting your code. Code tags are used like so =>
Thanks,
PsychoCoder

New Topic/Question
Reply



MultiQuote


|