11-29-2009, 12:38 AM
|
#5
|
|
|
cout << sizeof(bool) ?
__________________
If you notice this notice you will notice that this notice is not worth noticing.
"Are you doing anything tonight? If not, how about me?"
Opera Sucks! - FIX IT
Oliver Zheng
|
|
|
12-06-2009, 03:28 AM
|
#6
|
|
|
How is boolean represented in memory
Hey, How can I read out a Car ID from the Memory? I tried it in that way:
|
|
|
12-14-2009, 04:18 AM
|
#11
|
|
|
On my system, sizeof(bool) == 1. It's the same size as a char. If you want space savings (and not zero overhead, in which case use bool), look up vector<bool>. It implements what Krilnon says, kind of.
__________________
If you notice this notice you will notice that this notice is not worth noticing.
"Are you doing anything tonight? If not, how about me?"
Opera Sucks! - FIX IT
Oliver Zheng
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 03:38 PM.
|
|