Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTask bar does not pop up Pin
normanS31-Jan-05 1:43
normanS31-Jan-05 1:43 
GeneralStatic linking for ActiveX controls. Pin
pc_dev30-Jan-05 23:50
pc_dev30-Jan-05 23:50 
GeneralRe: Static linking for ActiveX controls. Pin
Cedric Moonen30-Jan-05 23:58
Cedric Moonen30-Jan-05 23:58 
Generalserial com port Pin
syed abbdul qavi30-Jan-05 23:26
syed abbdul qavi30-Jan-05 23:26 
GeneralRe: serial com port Pin
Cedric Moonen30-Jan-05 23:35
Cedric Moonen30-Jan-05 23:35 
GeneralRe: serial com port Pin
syed abbdul qavi7-Feb-05 18:30
syed abbdul qavi7-Feb-05 18:30 
GeneralGenerated #include lines format in VC 7.1 Pin
rbid30-Jan-05 22:46
rbid30-Jan-05 22:46 
GeneralJPG2AVI Pin
yingkou30-Jan-05 20:51
yingkou30-Jan-05 20:51 
GeneralRe: JPG2AVI Pin
Ted Ferenc31-Jan-05 0:16
Ted Ferenc31-Jan-05 0:16 
GeneralRe: JPG2AVI Pin
yingkou31-Jan-05 13:43
yingkou31-Jan-05 13:43 
General.Net Hello World - Help! Pin
Nick_Fi30-Jan-05 20:31
Nick_Fi30-Jan-05 20:31 
GeneralRe: .Net Hello World - Help! Pin
Yulianto.30-Jan-05 21:50
Yulianto.30-Jan-05 21:50 
GeneralRe: .Net Hello World - Help! Pin
toxcct31-Jan-05 4:54
toxcct31-Jan-05 4:54 
GeneralRe: .Net Hello World - Help! Pin
Yulianto.31-Jan-05 13:09
Yulianto.31-Jan-05 13:09 
GeneralRe: .Net Hello World - Help! Pin
toxcct1-Feb-05 2:10
toxcct1-Feb-05 2:10 
GeneralRe: .Net Hello World - Help! Pin
Yulianto.1-Feb-05 14:23
Yulianto.1-Feb-05 14:23 
GeneralRe: .Net Hello World - Help! Pin
jhwurmbach1-Feb-05 1:39
jhwurmbach1-Feb-05 1:39 
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

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.