-
Dev-C++ Problems
hey im using c++ in my school and i made a program there and it works fine there, but now that i try to use it at home it doesnt work. i'm positive its because im using dev-c++. the problem happens when i use the randomize function in my program. here is what the error says:
implicit declaration of function `int randomize(...)'
implicit declaration of function `int random(...)'
i hope that someone who uses dev knows how to solve this problem.
;) Thanks in advance!
-
What header files are you including? I think that your school installed speacial header files with the randomize function. I do not think that it is a standard function.
-
i used these ones im pretty sure they are right
#include<iostream.h>
#include<stdlib.h>
#include<conio.h>
#include<fstream.h>
by the way im just wondering if u have used dev before, im not tring to be mean its just that devv is alot different than other normal c++ programs.
;)thanks for replying!
-
Dev-C++ is the IDE I use. It isn't that different either. The only difference that I can think of is that you might have downloaded a different version. Make sure that you and your school are both using the same version.
-
dood,
my school is using turbo c++ from borland. the way we could solve this is if u send me a code tag showing me how to use randomize in devc++
:) thanks
-
Ooh, I thought that you were using Dev-C++ at school too.
The problem is that conio.h is a non-standard header file. This means that some compilers might not support it. Try including either conio.c or mingw_conio.h. These are two header files that contain most of what conio.h contains.
-
Don't double post. Also, if you follow the advice of golfinguy4 make sure that you are linking conio.c not including it.
Again, double post is annoying. It puts you on the the moderators' bad sides. Additionally, it won't necessarily get you more responses.