- #1
- 162
- 203
I am learning both languages for coming certified exams :D
I have a code line in C# like this
I would like to do this in C++ (I am using dynamic_bitset of boost - don't know if this a bad choice)
I am not a fan of boost, have you any other ways to covert the above C# code into C++. bitset of C++ only allows specification of template bitset size at compile time.
I have a code line in C# like this
Code:
byte[] resource=...;
BitArray data=new BitArray(resource.ToArray());
Code:
std::vector<unsigned char>resource=...
boost::dynamic_bitset<> data(resource.begin(),resource.end());
Last edited by a moderator: