Files
cs5500_parallel_prog/HW10/City.h
2020-03-29 15:39:26 -06:00

23 lines
405 B
C++

//
// Created by Brady Bodily on 3/28/20.
//
#ifndef HW10_CITY_H
#define HW10_CITY_H
class City {
int X, Y, Name;
public:
City() {}
void SetCoordinates(int x, int y, int name){ X = x; Y = y; Name = name; };
int GetX(){ return X; }
int GetY(){ return Y; }
int GetName(){ return Name; }
bool operator< (const City &other) const {
return Name < other.Name;
}
};
#endif // HW10_CITY_H