I have borland C++ compiler on my system.while generating random numbers in C++,though i have incuded #include<cstdlib> and #include<iostream> i get these errors
1.cannot open include file cstdlib
2.call to undefined function rand
please help me with a solution
charles_wt
0
Newbie Poster
Recommended Answers
Jump to PostI checked my old Borland C++ compiler, you may have to add the .h to your includes!
#include<iostream.h>
#include<cstdlib.h>
All 4 Replies
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
alc6379
120
Cookie... That's it
Team Colleague
romerboy55
0
Newbie Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.