[Bug c++/36178] rand() combined with vectors negates setw()

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu May 8 04:14:00 GMT 2008



------- Comment #4 from pinskia at gcc dot gnu dot org  2008-05-08 04:13 -------
I don't see the issue here, rand returns numbers which are greater than 6
digits.  The first number is 16807 which is 5 digits and then the next one is
282475249 which is 9 digits.  setw just sets the minimal  space to be outputted
so if it is more, it will print out more and not pad it.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36178



More information about the Gcc-bugs mailing list