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*~
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>
i seem to have GCC 3.3.4
But how do i start it?
I dont have a menu for it or anything.
..uh.. I had <time.h> already (thx for ur help anyway )
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));
If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein
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.
If you understand what you're doing, you're not learning anything.
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.Originally Posted by itsme86
If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein
Unfortunately, yesOriginally Posted by pianorain
If you understand what you're doing, you're not learning anything.