bfs class Solution { public: /** * 判断岛屿数量 * @param grid char字符型vector<vector<>> * @return int整型 */ void bfs(vector<vector<char> >& grid,int row,int col){ int crow[4] = {1,0,-1,0},ccol[4] = {0,1,0,-1}; queue<pair<int,int&g...