delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/29/18:25:22

Message-ID: <38E24C59.7E7C4E1D@gtcom.net>
From: Krogg <krogg DOT no DOT to DOT spam AT gtcom DOT net>
X-Mailer: Mozilla 4.61 [en] (Win95; U)
X-Accept-Language: en-US,en-GB,en,ja
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: bitset<8*sizeof(int)>b = i;
References: <8bsekb$6pt$1 AT nnrp1 DOT deja DOT com>
Lines: 44
Date: Wed, 29 Mar 2000 13:32:57 -0500
NNTP-Posting-Host: 12.6.67.188
X-Trace: eagle.america.net 954354892 12.6.67.188 (Wed, 29 Mar 2000 13:34:52 EST)
NNTP-Posting-Date: Wed, 29 Mar 2000 13:34:52 EST
Organization: 24hoursupport.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

igneous1 AT my-deja DOT com wrote:
> 
> i expected this to print 1 through 10 in binary
> however it didnt even compile
> I have found that its not compiling in DJGPP. Any idea why?


> #include <iostream>
> #include <bitset>
> using namespace std;
> void binary(int i)
> {
> bitset<8*sizeof(int)>b = i;
> cout<< b << "\n";
> }
> int main()
> {
> for(int i = 0; i < 11; i++)
> binary(i);
> return 0;
> }

At first glance i see that this is C++ type of syntax,
have you named your file with a .cc or .cpp extention?

as for all the other errors up to this one:
c:/djgpp/lang/cxx/bitset(815) Error: confused by earlier errors, bailing out

I am going to take the same stance as gcc,and bailout....




-- 


|"""""<`.THE PRINCE ,'>"""""""""""""""""""""""""""""""""""|
|      `.`/""""""\,','            my sig is too big,      |
|SEE HIS (  /   \ \' SEE HIS      but its really cool.    |
| FACE    \/<> <>\/   SMILE                               |
|         /   W   \          Visit my ascii art site:     |
|       ,'\_|||||_/`.  http://www.gtcom.net/~krogg/ascii/ |
|     ,','   |||   `.`.     krogg DOT no DOT to DOT spam AT gtcom DOT net    |
|____<,' TIME TO DIE `.>____Remove no.to.spam to reply____|

- Raw text -


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