wut sup
public cpp v1 · immutablebool Valley:: addRobot(string name, int r, int c, Dir dir){ if(m_nrobots==MAXROBOTS) return false; else { m_robots[m_nrobots]=new Robot(name, r, c, dir); m_nrobots++; return true; }return true;} } }}bool Valley:: addRobot(string name, int r, int c, Dir dir){ if(m_nrobots==MAXROBOTS) return false; else { m_robots[m_nrobots]=new Robot(name, r, c, dir); m_nrobots++; return true; }return true;} } }}