Click here to Skip to main content
15,891,607 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: bitsets Pin
Chris Losinger31-Jan-05 4:24
professionalChris Losinger31-Jan-05 4:24 
with bitset, operator [] doesn't give you an array element, like it would with a normal C/C++ array. in bitset, operator [] returns the value of the bit at the position you requested.

so, &a[4] isn't the address of the 4th bit, it's the address of the value returned from the [] operator. not very useful.

HellFeuer wrote:
then how is a bitset impelemnted???

looking at the BITSET header file:

template < size_t _N > class bitset {
typedef unsigned long _Ty;
...
private:
	enum {_Nb = CHAR_BIT * sizeof (_Ty),
		_Nw = _N == 0 ? 0 : (_N - 1) / _Nb};
...
_Ty _A[_Nw + 1];


_N is the bitset size. _Nw is the number of bytes required to hold your bits. so, internally, it's an array of unsigned ints - but you can't get at that internal array with the [] operator.

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

yup.


Image Toolkits | Image Processing | Cleek

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 
GeneralRe: How to enum the drivers in the system? Pin
David Crow31-Jan-05 4:04
David Crow31-Jan-05 4:04 

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.