1. string output

Can any body help me with one?

What code do I use to have asentence "puts  (1, )" --printed on the screen
having each word on a seperate line.

new topic     » topic index » view message » categorize

2. Re: string output

On 14 Jul 2005, at 4:08, herb wrote:

> 
> 
> posted by: herb <herb at sunbeach.net>
> 
> 
> Can any body help me with one?
> 
> What code do I use to have asentence "puts  (1, )" --printed on the screen
> having each word on a seperate line.

puts(1,"words\none\ntwo\nthree\nfour\nfive\nsix")

All the "\n" are newline, and it's ok to press them all together like that in a 
sequence/string. You can put in spaces if you like, and the spaces will be 
printed to the screen also.

Kat

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu