⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 matrix.hpp

📁 unix/linux下拼写检查程序源码
💻 HPP
字号:
#ifndef __aspeller_matrix_hh__#define __aspeller_matrix_hh__#include <vector>namespace aspeller {  class ShortMatrix {    int x_size;    int y_size;    std::vector<short> data;  public:    ShortMatrix() {}    void init(int s) {x_size = y_size = s; data.resize(s*s);}    void init(int sx, int sy) {x_size = sx; y_size = sy; data.resize(sx*sy);}    short operator() (int x, int y) const {return data[x + y*x_size];}    short & operator() (int x, int y) {return data[x + y*x_size];}  };}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -