The last 'printf' message (I hope)

new topic     » topic index » view thread      » older message » newer message

To Pete Eberlein and Bob Pilkington (among others):

Thanks for your help with the 'printf' command.  I went back and looked in
the library documentation, but it doesn't give even a hint about the first
parameter being an integer or the third parameter needing braces, with
quotes inside the braces if the third parameter is a string.  Well, okay, a
hint, but it's very obscure.

Incidentally, your suggestions (both of you) were just a hair short of the
mark.  I incorporated them in the program and tried to run it, but it bombed
again.  But I know what the problem is now (I think -- haven't tried to fix
it yet).

Bob, I like your suggestion about the 'for' loop.  First reaction was to
reject it, because the printout is too long for one line.  Therefore the
'for' loop, at least if used as you suggested, would leave a rather ragged
printout.  I'm going to try a modified version of it because Euphoria
doesn't like the shape of the command the way I used it (which is also the
way you used it in your reply).  That third parameter has to be in braces,
but the braces can't enclose a slice out of a sequence.

The 'for' loop will come in handy when I'm running the full program instead
of the abbreviated version for debugging.  In that version the printout will
be three lines, not two, and the plain 'for' would look even more raggedy.

Thanks again.

Wally Riley
wryly at mindspring.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu