c++ - A core about string -
i have function follow: #define _glibcxx_fully_dynamic_string 1 typedef struct _coordinate{ int posx; int posy; _coordinate(int x = 0,int y = 0){posx = x; posy = y;}; }coordinate; int find_way(int x, int y, int food_x, int food_y, vector <string>& grid, vector<coordinate>& co, vector<coordinate>& cur, nt& min){ if(cur.empty()){ if(!co.empty()){ return 1; } else{ return 0; } } coordinate node = cur.back(); int nx = 0; int ny = 0; if((node.posx == food_x) && (node.posy == food_y)){ if(cur.size() < min){ co.clear(); for(int = 0; < cur.size(); i++){ co.push_back(cur[i]); cout<<cur[i].posx<<" "<<cur[i].posy<<endl; } min = co.size(); } cur.pop_back(); return find_way(x, y, food_x, food_y, grid, co, cur...