Hi everyone,
i have srand((unsigned)time(NULL)); in my code, and I keep on getting called object is not a function error. I've included <stdlib.h>, and i use Dev-C++ the latest version. Can anyone plz help?
~*sB*~
Printable View
Hi everyone,
i have srand((unsigned)time(NULL)); in my code, and I keep on getting called object is not a function error. I've included <stdlib.h>, and i use Dev-C++ the latest version. Can anyone plz help?
~*sB*~
<time.h>
..uh.. I had <time.h> already (thx for ur help anyway :D )
anything else?
~*sB*~
Sorry...I'm only psychic on Tuesdays. Maybe you should post your code. From what you've already posted, the only suggestion I can make is srand((unsigned int)time(NULL));
It sounds like you have a variabled declared called time. You can't have a variable with the same name as a function.
But like everyone else said, post you're code. You're coming here looking for help; at least make it as easy for us to help you as possible.
u were right.. I named a variable time. I changed it to something else, and it works fine. thx a lot!!!
wow, i'm surprised by how many ppl are willing to help. thx a bunch to everyone =)
Yum...sounds like the voice of experience. ;)Quote:
Originally Posted by itsme86
Unfortunately, yes :DQuote:
Originally Posted by pianorain