常用方法
常用方法
常用方法
常用方法
void World::init() { freopen("input/1.in","r",stdin); string line; for( int j = 0; cin >> line; ++j ){ for( int i = 0; i < line.size(); ++i ){ if(line[i] == '1'){ Obstacle temp; temp.set_obstacle(i,j+1); obstacles.pb(temp); } } } tripi.set_coordinates(0,0,3); }