15 lines
311 B
C++
15 lines
311 B
C++
#pragma once
|
|
#include "std_lib_facilities.h"
|
|
|
|
class CourseCatalog
|
|
{
|
|
public:
|
|
CourseCatalog();
|
|
friend ostream& operator<<(ostream&, const CourseCatalog&);
|
|
void addCourse(const string code, string name);
|
|
void removeCourse(string code);
|
|
string getCourse(string code);
|
|
private:
|
|
map<string, string> courses;
|
|
};
|