Click here to Skip to main content
15,896,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: .Net Hello World - Help! Pin
Selvam R31-Jan-05 1:06
professionalSelvam R31-Jan-05 1:06 
GeneralRe: .Net Hello World - Help! Pin
Nick_Fi31-Jan-05 2:46
Nick_Fi31-Jan-05 2:46 
QuestionLink Error? Pin
Larsson30-Jan-05 20:16
Larsson30-Jan-05 20:16 
AnswerRe: Link Error? Pin
rwestgraham30-Jan-05 22:06
rwestgraham30-Jan-05 22:06 
GeneralRe: Link Error? Pin
Larsson30-Jan-05 23:25
Larsson30-Jan-05 23:25 
GeneralRe: Link Error? Pin
rwestgraham31-Jan-05 6:30
rwestgraham31-Jan-05 6:30 
AnswerRe: Link Error? Pin
aj168231-Jan-05 16:08
aj168231-Jan-05 16:08 
Generalbitsets Pin
HellFeuer30-Jan-05 19:48
HellFeuer30-Jan-05 19:48 
hey

i was surfing around and stumbled across the bitset.. i'm curious - how does it work??? i didnt think it was possible 2 address single bits in memory..

i got some very funny results with this code:
bitset<10> a;
cout<<sizeof(a);
cout<<" "<<&a[4];
cout<<" "<<&a[4];
cout<<" "<<&a[2];

here's wt i get:
4 0x0012FF74 0x0012FF6C 0x0012FF64

y is sizeof(a) 4????
if i make a bitset of 33 bits, then th size becomes 8, so i gues it gets stored in multiples of 4 bytes??? so if ur nt actualy storing single bits, then wt r bitsets used 4???

and wts with the the addresses?? how is it tht the adress of the same bit is different the second time??? (and even if i change the number in the 4th line from 4 to nethin else, i stil get the same output)

clearly, u cant refer 2 th address of a single bit... then how is a bitset impelemnted???

and because of al this, wudnt they be inherently slow to access???


im new 2 c++ so sorry if iv askd somthin silly

HellFuer
GeneralRe: bitsets Pin
Chris Losinger31-Jan-05 4:24
professionalChris Losinger31-Jan-05 4:24 
GeneralDebug Assertion failed Pin
aj168230-Jan-05 19:44
aj168230-Jan-05 19:44 
GeneralRe: Debug Assertion failed Pin
ThatsAlok30-Jan-05 21:45
ThatsAlok30-Jan-05 21:45 
GeneralRe: Debug Assertion failed Pin
aj168230-Jan-05 22:35
aj168230-Jan-05 22:35 
GeneralRe: Debug Assertion failed Pin
ThatsAlok31-Jan-05 3:15
ThatsAlok31-Jan-05 3:15 
GeneralRe: Debug Assertion failed Pin
aj168231-Jan-05 15:21
aj168231-Jan-05 15:21 
GeneralRe: Debug Assertion failed Pin
ThatsAlok31-Jan-05 17:34
ThatsAlok31-Jan-05 17:34 
GeneralRe: Debug Assertion failed Pin
aj16821-Feb-05 0:35
aj16821-Feb-05 0:35 
GeneralRe: Debug Assertion failed Pin
aj16821-Feb-05 0:37
aj16821-Feb-05 0:37 
GeneralRe: Debug Assertion failed Pin
David Crow31-Jan-05 4:03
David Crow31-Jan-05 4:03 
GeneralRe: Debug Assertion failed Pin
aj16821-Feb-05 0:41
aj16821-Feb-05 0:41 
GeneralRe: Debug Assertion failed Pin
David Crow1-Feb-05 2:29
David Crow1-Feb-05 2:29 
GeneralRe: Debug Assertion failed Pin
Wes Aday31-Jan-05 4:14
professionalWes Aday31-Jan-05 4:14 
GeneralRe: Debug Assertion failed Pin
aj168231-Jan-05 16:03
aj168231-Jan-05 16:03 
GeneralRe: Debug Assertion failed Pin
jhwurmbach1-Feb-05 1:51
jhwurmbach1-Feb-05 1:51 
QuestionHow to enum the drivers in the system? Pin
sharkmouse30-Jan-05 18:33
sharkmouse30-Jan-05 18:33 
AnswerRe: How to enum the drivers in the system? Pin
ThatsAlok30-Jan-05 22:01
ThatsAlok30-Jan-05 22:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.