Backing up
This commit is contained in:
22
HW10/City.h
Normal file
22
HW10/City.h
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user