构造二维布尔数组,初始值为false:
vector<vector<bool>> st(rows, vector<bool>(cols, false));
vector里面会把初始值默认定义成false,so,can write
vector<vector<bool>> st(rows, vector<bool>(cols));
构造二维布尔数组,初始值为false:
vector<vector<bool>> st(rows, vector<bool>(cols, false));
vector里面会把初始值默认定义成false,so,can write
vector<vector<bool>> st(rows, vector<bool>(cols));