This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36178] rand() combined with vectors negates setw()
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 May 2008 04:13:16 -0000
- Subject: [Bug c++/36178] rand() combined with vectors negates setw()
- References: <bug-36178-16161@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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