rand() was not declared in this scope, please help#8207;

2010-09-08 Thread eric lin
dear cygwin/gcc users: I compile a simple code which i copied from a book, The Complete Reference of C++ Fourth Edition by Herbert Schildt in page 575, rand() which is clearly not be included in #include iostream I tried #inlcude cmath it still not compile, i.e. same compile error

Re: rand() was not declared in this scope, please help#8207;

2010-09-08 Thread Václav Haisman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 eric lin wrote, On 8.9.2010 19:35: dear cygwin/gcc users: I compile a simple code which i copied from a book, The Complete Reference of C++ Fourth Edition by Herbert Schildt in page 575, rand() which is clearly not be included in

Re: rand() was not declared in this scope, please help#8207;

2010-09-08 Thread mike marchywka
On 9/8/10, Václav Haisman v.hais...@whithaus.giv wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 eric lin wrote, On 8.9.2010 19:35: dear cygwin/gcc users: I compile a simple code which i copied from a book, The Complete Reference of C++ Fourth Edition by Herbert Schildt in page