I am using microsoft visual studio c++ and get the following compile time errors with drand48:Code:#include <iostream> #include <ctime> #include <stdio.h> #include <stdlib.h> #include "PQ.h" using namespace std; int main() { PQ my_jobs; //PriorityQueue object int x; int a; cout<<drand48()<<endl; return 0; for(x=0; x<10000; x++) { a = (rand() % 65535); my_jobs.insert(0,a); } my_jobs.queueStatus(); return 0; }
main.cpp(14): error C2065: 'drand48' : undeclared identifier
main.cpp(14): error C2593: 'operator <<' is ambiguous
any ideas on how i can fix this?