Here are some screenshots, but my I am currently trying tofigure out how to set my smart_ptr vector (courseInfo) to storedata from the read file?
V Quick Launch (Ctrl+O) – A Caela McCartney x CM N ConsolcApplication23 Microsoft Visual Studio File Edit View Project Build Debug Team Nsight Tools o . 2-. Debug – x06 Toolbox 1x Course.cop 4 x Course Objecth Search Toolbox ConsoleApplication23 > Bootstrap Snippets Avectorestring getFile; . General 11 Courses Course) Test Analyze Window Help – Local Windows Debugger N CourseObjectcpp Course – Cour NNE FI A ainClassh MainClass.cpp M – Solution Explorer 4x – addEntry There are no usable controls in this group. Drag an item onto this text to add it to the toolbox Elnure: Courrr() Evoid Course: entry) Search Solution Explorer (Ctrl + D. Solution Console Application23 ConsoleApplication23 > References ► G External Dependencies Header Files > Courseh > CourseObjecth ► MainCass.h pchh Resource Files Source files > ** Coursepp > to CourseObject.cpp ► to Main Class.cpp ** pct.cpp itstream tile(“Homework 4 Osta.txt” stdi istring classes, string fullclass =*: static int count = 8 halalrin Lith; Cours course; while (gutline(file, elasa) if (count = ) full lase – fullclass + te stringi strach(classes)); tullclass – tullclass + “1” + classes; Solution Flarer Team Explorer Properties – 2x courseInfo.push back(shared ptr Course Course (fullclass))}; VLONL; continue for (int i = 1 & rurseinfo.cire ; i++) cout << courseInfo.at(1) << endl; file.close(); Error List Output Ready Colos ChSG INS – In 39 59WL + Add to Source Control 124 AM ENG 1/26/20192 Type here to search o e AG V Quick Launch (Ctrl+O) – A Caela McCartney x CM N ConsolcApplication23 Microsoft Visual Studio File Edit View Project Build Debug Team Nsight Tools o . 2-. Debug – x06 Toolbox x Course.cpp CourseObjecth Search Toolbox Console Application23 apraga Once > Bootstrap Snippets Fainclude <vector . General include <iostream Test Analyze Window Help – Local Windows Debugger N CourseObject.cpp Course. h – Course NNE FI A MainClassh Main Class.cpp x – Solution Explorer 4x using naapuu atd; There are no usable controls in this group. Drag an item onto this text to add it to the toolbouw Course Course(); void addEntry); shared ptrCourse getEntry; shared ptrCourses deleteEntry Search Solution Explorer (Ctrl + D. Solution Console Application23 ConsoleApplication23 > References > External Dependencies Header Files > Courseh > CourseObjecth ► MainClass.h > pchh Resource Files Source files > ** Coursepp > to CourseObject.cpp ► MainClass.cpp ** pct.cpp private: vectorchared ptr course) courseInfo; Vectoren hastal Solution Flarer Team Explorer Properties – 2x 80% Error List Output Ready Ch22 INS – un 18 Col 25 59WL + Add to Source Control 124 AM ENG 1/26/20192 Type here to search o e AG Show transcribed image text V Quick Launch (Ctrl+O) – A Caela McCartney x CM N ConsolcApplication23 Microsoft Visual Studio File Edit View Project Build Debug Team Nsight Tools o . 2-. Debug – x06 Toolbox 1x Course.cop 4 x Course Objecth Search Toolbox ConsoleApplication23 > Bootstrap Snippets Avectorestring getFile; . General 11 Courses Course) Test Analyze Window Help – Local Windows Debugger N CourseObjectcpp Course – Cour NNE FI A ainClassh MainClass.cpp M – Solution Explorer 4x – addEntry There are no usable controls in this group. Drag an item onto this text to add it to the toolbox Elnure: Courrr() Evoid Course: entry) Search Solution Explorer (Ctrl + D. Solution Console Application23 ConsoleApplication23 > References ► G External Dependencies Header Files > Courseh > CourseObjecth ► MainCass.h pchh Resource Files Source files > ** Coursepp > to CourseObject.cpp ► to Main Class.cpp ** pct.cpp itstream tile(“Homework 4 Osta.txt” stdi istring classes, string fullclass =*: static int count = 8 halalrin Lith; Cours course; while (gutline(file, elasa) if (count = ) full lase – fullclass + te stringi strach(classes)); tullclass – tullclass + “1” + classes; Solution Flarer Team Explorer Properties – 2x courseInfo.push back(shared ptr Course Course (fullclass))}; VLONL; continue for (int i = 1 & rurseinfo.cire ; i++) cout pchh Resource Files Source files > ** Coursepp > to CourseObject.cpp ► MainClass.cpp ** pct.cpp private: vectorchared ptr course) courseInfo; Vectoren hastal Solution Flarer Team Explorer Properties – 2x 80% Error List Output Ready Ch22 INS – un 18 Col 25 59WL + Add to Source Control 124 AM ENG 1/26/20192 Type here to search o e AG
Expert Answer
Answer to Here are some screenshots, but my I am currently trying to figure out how to set my smart_ptr vector (courseInfo) to st…