I am having some trouble using randomize.
I believe that the function is located in stdlib.h
In turbo c++, I have this written:
#include <iostream.h>
#include <stdlib.h>
int main()
{
int x;
randomize();
x = random (100);
cout << x;
return 0;
}
This works fine in Turbo C++, but when I put the same code in Microsoft Visual C++, I get an "undeclared identifier" error on the two functions. Could someone please explain this to me?
-RSTR
benthecat@hotmail.com
I believe that the function is located in stdlib.h
In turbo c++, I have this written:
#include <iostream.h>
#include <stdlib.h>
int main()
{
int x;
randomize();
x = random (100);
cout << x;
return 0;
}
This works fine in Turbo C++, but when I put the same code in Microsoft Visual C++, I get an "undeclared identifier" error on the two functions. Could someone please explain this to me?
-RSTR
benthecat@hotmail.com