#include <iostream>
#include <string>
usingnamespace std;
class Student
{
private:
string sname;
int sID;
vector<string>coursetype;
}
/*
Attributes are:
student name (just use a single name if you are not clear about getline issues)
student id number (an integer)
A list of courses represented by a vector of Course type */
It's not mentioned in either of those links, but using X and using namespace Y opts into argument-dependent lookup (ADL), which can introduce its own subtle problems.
Some of us (me) prefer never to write using namespace at all, and reserve using X to opt-in for ADL, but I suppose as long as the usage is local - i.e., one makes sure it doesn't affect too much code - it's an acceptable decision.