I need to attach CourseTitle at the end of each CourseCode. I'm trying to use "insert" but I'm not getting it right so far. I googled around and it seems like I have to use what is called an iterator.
The following is the criteria for my program. Am I on the right track so far?
Write a C++ program to store and print physics courses
-Allow the user to enter an arbitrary number of courses
- Ask the user to separately provide a course code (integer, e.g. 30762) and title (string, e.g. Programming in C++)
- Use a string stream to create a string containing the full course title, e.g. PHYS 30762 Programming in C++
- Each of these strings should be stored in a vector
- Print out full course list using an iteratorAssignment 3: physics course database
- Your program should correctly use
- a vector of strings to store course data (1 mark)
- a string stream to combine course code and title (1 mark)
- an iterator to print out information for each course (1 mark)
- Challenge mark: your code should also be able to print out a list of courses for a particular year, as identied by the first digit of the course code