Mail Archives: djgpp/2000/03/30/05:50:52
From: | igneous1 AT my-deja DOT com
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: bitset<8*sizeof(int)>b = i;
|
Date: | Thu, 30 Mar 2000 06:12:22 GMT
|
Organization: | Deja.com - Before you buy.
|
Lines: | 56
|
Message-ID: | <8bur7s$stc$1@nnrp1.deja.com>
|
References: | <8bsekb$6pt$1 AT nnrp1 DOT deja DOT com> <38E24C59 DOT 7E7C4E1D AT gtcom DOT net>
|
NNTP-Posting-Host: | 166.62.205.19
|
X-Article-Creation-Date: | Thu Mar 30 06:12:22 2000 GMT
|
X-Http-User-Agent: | Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
|
X-Http-Proxy: | 1.1 x24.deja.com:80 (Squid/1.1.22) for client 166.62.205.19
|
X-MyDeja-Info: | XMYDJUIDigneous1
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
In article <38E24C59 DOT 7E7C4E1D AT gtcom DOT net>,
krogg DOT no DOT to DOT spam AT gtcom DOT net wrote:
> igneous1 AT my-deja DOT com wrote:
> >
> >
Iv since found the answer <climits> must be placed in front
of <bitset>.
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____|
>
Sent via Deja.com http://www.deja.com/
Before you buy.
- Raw text -