Mail Archives: djgpp/1998/05/09/12:57:18
> From: "John M. Aldrich" <fighteer AT cs DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Subject: Re: where are the manipulators?
> Date: Tue, 05 May 1998 18:50:36 -0400
> To: djgpp AT delorie DOT com
> Precedence: bulk
>
> David wrote:
> >
> > I'm new to c++, and new to djgpp also. When I compiled a program using
> > <iomanip.h> in RHIDE, there were no errors but it's like I never
> > used setw or setfill because they're completely ignored in the binary
> > program:
> >
> > btw, although there are no errors, rhide, in the messages window
> > always says one "Bad command or file name". What is it looking for?
>
> Please post some sample code that demonstrates this problem. I have no
> difficulty using the iostream manipulators in DJGPP. Make sure that
> you've set up your DJGPP configuration properly; if you continue to
> experience problems, try creating an RHIDE bug report and submitting it.
Hello,
sorry I haven't replied to this later, but I've been busy with
school.
Here's the code that doesn't work.
----
void mostra( Tabuleiro tab1 ) { // show game
cout << ' ' << tab1[0][0] << ' ' << '|' << ' ' << tab1[0][1]
<< ' ' << '|' << ' ' << tab1[0][2] << endl; cout << setw(11)
<< setfill('-') << endl;
cout << ' ' << tab1[1][0] << ' ' << '|' << ' ' << tab1[1][1]
<< ' ' << '|' << ' ' << tab1[1][2] << endl; cout << setw(11)
<< setfill('-') << endl;
cout << ' ' << tab1[2][0] << ' ' << '|' << ' '
<< tab1[2][1] << ' ' << '|' << ' ' << tab1[2][2] << endl;
}
-----
Something like this should appear (in Borland it does):
| |
---------
| |
---------
| |
In the file compiled with djgpp:
| |
| |
| |
This has nothing to do with rhide, because I compiled usind gpp
outside rhide and it happened, too.
I used '-O2' and '-s'.
The only thing rhide does is getting I-don't-know-what because it
always displays "bad command or file name" in the messages window.
However the programs always compiled fine...
Any sugestion?
David
- Raw text -