Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int cell(const int& c)
- {
- int test_bit = 1;
- test_bit <<= (c - c / 8);
- if (cells[c / 8] & test_bit)
- return 1;
- else
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement