TDT4102-Ovinger/Oving 6 Task 5/Oving6Task5/Task3.h

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;
};