![]() |
|
|
#1 |
|
Jun 2003
62E16 Posts |
How does one create a array of bits in C++?(msvisual C++)
Citrix |
|
|
|
|
|
#2 |
|
Jun 2005
3·5 Posts |
If you want to use the STL than you can try using a bitvector. or a vector of bools. or an array of bools.
The best is bitvector since it is specifically designed for this and will probably use less memory. I think it is declared in the algorithm header file. This is all from mem so forgive any compile errors oversights. The last alternative is to do it yourself with bitmasks and intergers. |
|
|
|
|
|
#3 |
|
Jun 2003
2·7·113 Posts |
Thanks
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to init an array in Posix bc? | ewmayer | Linux | 29 | 2018-03-08 21:42 |
| Array vs Hash Table vs Map for QS | Sam Kennedy | Programming | 1 | 2012-12-25 23:25 |
| 64 bits versus 32 bits Windows | S485122 | Software | 2 | 2006-10-31 19:14 |
| 35-35.2 to 62 bits, cont from 61 bits | Khemikal796 | Lone Mersenne Hunters | 12 | 2005-12-01 21:35 |
| Ubasic Array question | rn0dal | Programming | 6 | 2004-09-15 14:57 |