Tuesday, October 18, 2011

[Cpp-Programming] Re: Scaling Random Numbers

I'm looking for a way to scale random numbers from 1 to 100 and input
them into a file. I'm already assuming that I'm using a loop to
repeat the randomization. As far as placing them in columns, that's
what I'm having problems with. As in the output to the file is
supposed to appear in columns. I've used setw() in the past to set
the spacing but everything always seems to display in one column, not
multiple columns as I want it to.

On Oct 18, 3:00 pm, BlueRaja <blueraja.ad...@gmail.com> wrote:
> To scale a number, you multiply it by another number.  Could you be a bit
> more specific about your problem?

--
You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To post to this group, send email to cpp-programming@googlegroups.com.
To unsubscribe from this group, send email to cpp-programming+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cpp-programming?hl=en.

0 Comments:

Post a Comment

<< Home