How to implement a bitset in C?

前端 未结 7 2131
-上瘾入骨i
-上瘾入骨i 2020-11-30 04:42

I have been using the Bitset class in Java and I would like to do something similar in C. I suppose I would have to do it manually as most stuff in C. What would be an effic

相关标签:
7条回答
  • 2020-11-30 05:08

    As usual you need to first decide what sort of operations you need to perform on your bitset. Perhaps some subset of what Java defines? After that you can decide how best to implement it. You can certainly look at the source for BitSet.java in OpenJDK for ideas.

    0 讨论(0)
提交回复
热议问题