IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New I appreciate elegant solutions, but ...
your [link|http://mathbits.com/MathBits/CompSci/looping/operator2.htm|Conditional Operator] solution was perfect.

It works!

I just have a couple of final things to clean up, then it'll be done.

\n   for (int k=0; k <= (hardcopy ? (MaxHeader-1) : 0); k++)\n   {\n   // Immediately check to see if this is only a single map.\n      if (!hardcopy) k = SelectedHeader;\n      \n      (( lots of other stuff))\n      \n   }\n


I had to add the equality to the for statement, otherwise the loop doesn't execute if I'm not printing. That meant that the end count had to be adjusted too.

Thanks very much for your help! I never would have figured this out without a pointer. :-)

Cheers,
Scott.
New A seasoned C guy
would leave the conditions as

for (int k=0; k < (hardcopy ? (MaxHeader) : 1); k++)

Less operations and more like the usual array traversal where to traverse n elements you say
for(int i = 0; i < n; ++i)



[link|http://www.blackbagops.net|Black Bag Operations Log]

[link|http://www.objectiveclips.com|Artificial Intelligence]

[link|http://www.badpage.info/seaside/html|Scrutinizer]
New Ah, so! Thanks.
     What's the best way to do this? Loop or do a block 1 time. - (Another Scott) - (10)
         Query...how different is it - (Simon_Jester) - (3)
             There's almost no difference. 1 potential rub though. - (Another Scott) - (2)
                 Should you be using Jpeg to save the data at all? - (jake123) - (1)
                     They're just pictures for pasting in documents. - (Another Scott)
         May not be what you need... - (ChrisR) - (5)
             Neat. I'll have to try that. Thanks! -NT - (Another Scott) - (4)
                 From a purist standpoint... - (ChrisR) - (3)
                     I appreciate elegant solutions, but ... - (Another Scott) - (2)
                         A seasoned C guy - (tuberculosis) - (1)
                             Ah, so! Thanks. -NT - (Another Scott)

Ego cleanup on aisle three.
134 ms