delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/09/12:57:18

Message-Id: <199805091800.SAA03444@brethil.esoterica.pt>
From: "David Leal" <lorien AT mail DOT esoterica DOT pt>
To: djgpp AT delorie DOT com
Date: Sat, 9 May 1998 17:57:34 +0000
MIME-Version: 1.0
Subject: Re: djgpp daily digest for 05 May 1998 2/3
Reply-to: lorien AT esoterica DOT pt
CC: fighteer AT cs DOT com
In-reply-to: <199805060407.AAA14768@delorie.com>

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


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019