Re: setw help please
From: perry (perry_at_unifiedobjects.com)
Date: 05/01/04
- Next message: James Dennett: "Re: how to use http in c/c++?"
- Previous message: perry: "Re: setw help please"
- In reply to: perry: "Re: setw help please"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 01 May 2004 13:17:54 -0400
c++ version
> for (int y=0; y<lenght; y++)
> for (int x=0; x<3; x++)
> cout << words[y*3+x];
perry wrote:
> sounds to me like a simple \t will do?
>
> for (int y=0; y<lenght; y++)
> for (int x=0; x<3; x++)
> print("%s\t",words[y*3+x]);
>
> - perry
>
>
> fighterman wrote:
>
>> I use while loop to display this output and i use setw() for the space
>> between 2 words. However I want them to display straight down on each
>> column ( like column 1 ) so what should I do?
>> please help
>>
>> Word Left Right
>> A NULL TIN
>> TIN MUG WILD
>> MUG FOR OF
>> WILD TOO WITH
>> FOR CRAZY JAR
>> OF NITA SURFERS
>> TOO TINA TOSS
>> WITH NULL YOU
>> CRAZY AND DROVE
>> JAR GUM MONIQUE
>> NITA MY NORA
>>
>
- Next message: James Dennett: "Re: how to use http in c/c++?"
- Previous message: perry: "Re: setw help please"
- In reply to: perry: "Re: setw help please"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|