Re: setw help please

From: perry (perry_at_unifiedobjects.com)
Date: 05/01/04


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
>>
>



Relevant Pages

  • Re: setw help please
    ... fighterman wrote: ... > I use while loop to display this output and i use setw() for the space ... However I want them to display straight down on each ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Interpreting the colon operator
    ... I tried this by using the print statement inside the loop. ... What follows then would be a display of ... is apparently affected by the fact that matlab is aware that 'Av' ... three-dimensional matrix even though the first index is restricted ...
    (comp.soft-sys.matlab)
  • Re: Text window not displaying inside loop
    ... // Idle until the screen redraws itself, ... MSG msg; ... functionality to loop every X-seconds then checking the figures again. ... trying to display them fresh on each loop to a text box. ...
    (microsoft.public.vc.mfc)
  • Re: Text window not displaying inside loop
    ... // Release main thread for background processing ... GiveTime(); ... functionality to loop every X-seconds then checking the figures again. ... trying to display them fresh on each loop to a text box. ...
    (microsoft.public.vc.mfc)
  • Re: Sorry, but need more help
    ... >> I tried the code below in a loop calling it. ... > most often refers to a tcl program running in the tcl web browser ... window with that data and have it stay on top and display the changes as the ... > load in the showMessage proc definition with a timeout of 10000 ...
    (comp.lang.tcl)