📄 mask.hpp
字号:
#ifndef MASK_HPP#define MASK_HPPclass mask { protected: bool* data; unsigned int s; void init(const unsigned int& size); public: mask(); mask(const unsigned int& size); mask(const int& size); mask(bool *d, const unsigned int& size); mask(const mask &m); ~mask(); unsigned int size() const; unsigned int total_true() const; void print() const; bool all() const; bool any() const; mask& operator=(const mask& right); bool& operator[](const unsigned int& i); friend mask operator&&(const mask& left, const mask& right); friend mask operator||(const mask& left, const mask& right);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -