Wednesday, October 19, 2011

[Cpp-Programming] Re: Scaling Random Numbers

Ha! That's what I needed! Thanks.

On Oct 19, 2:12 am, Cosmin Tanasie <cosmin.tana...@gmail.com> wrote:
> How many columns do you need to display the numbers into? Is the column
> number dependent of the number of scaling factors? You could also use "\t"
> on the output instruction in order to display the results into columns.
>
>
>
>
>
>
>
>
>
> On Tue, Oct 18, 2011 at 10:09 PM, kwilk1984 <kwilk1...@gmail.com> wrote:
> > 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.
>
> --
> Cosmin I. Tanasie

--
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