On Wed, Apr 14, 2010 at 3:00 AM, milan agrawal <[email protected]> wrote:
> hi,
> I have posted the code. Please check it on http://textbin.com/12e81
>
>From the code copy pasted from that link:
4: In C++, you don't want to use header files for C (ones ending with
.h).. If you really want to use stdlib in C++, you should include
"cstdlib" (#include <cstdlib>)
5: get rid of iomanip.h
6: hence, "math" becomes "cmath"
If you look at the manpage of random() (you will need manpages-dev on
Ubuntu for it, then type "man 3 random"), you will find the syntax for
random function.
" long int random(void);
void srandom(unsigned int seed);"
Read the man page for more details. I think you will be done porting
your code once you make these fixes.
Sharad
--
l...@iitd - http://tinyurl.com/ycueutm
To unsubscribe, reply using "remove me" as the subject.