Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #13560

Re: loops

From Victor Bazarov <v.bazarov@comcast.invalid>
Newsgroups comp.lang.c++
Subject Re: loops
Date 2012-01-24 10:53 -0500
Organization A noiseless patient Spider
Message-ID <jfmk67$kr8$1@dont-email.me> (permalink)
References <70285e31-38eb-47b4-8474-84db67c32fdc@k6g2000vbz.googlegroups.com>

Show all headers | View raw


On 1/24/2012 9:25 AM, ahso wrote:
> i get z values by feeding/incrementing x and y. So i have for ex.
> 1-1386 z values and the question how to output those to a field of
> 128x128? (x/y)

Haven't you asked something like that before?

A solution might be two nested loops, one for x, the other for y (or 
vice versa).  Inside the inner loop feed the x and y values to your 
whatever gives you back the z, and immediately output.  I am not sure 
what "a field" is, but if it's something similar to "number of rows with 
a certain number of positions in each row", then make sure your "output" 
(whatever that is) goes to the next "row" before incrementing the outer 
loop.

And if you happen to have a C++ *language* question, go ahead and ask it.

V
-- 
I do not respond to top-posted replies, please don't ask

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

loops ahso <ahso47@yahoo.com> - 2012-01-24 06:25 -0800
  Re: loops Victor Bazarov <v.bazarov@comcast.invalid> - 2012-01-24 10:53 -0500
  Re: loops Gareth Owen <gwowen@gmail.com> - 2012-01-25 06:09 +0000
  Re: loops "Fred Zwarts \(KVI\)" <F.Zwarts@KVI.nl> - 2012-01-25 09:52 +0100
    Re: loops ahso <ahso47@yahoo.com> - 2012-01-25 01:38 -0800
      Re: loops "Fred Zwarts \(KVI\)" <F.Zwarts@KVI.nl> - 2012-01-25 11:20 +0100
        Re: loops ahso <ahso47@yahoo.com> - 2012-01-25 03:24 -0800
          Re: loops ahso <ahso47@yahoo.com> - 2012-01-27 11:55 -0800

csiph-web