#include <iostream>
#include<string>
#include<vector>
using namespace std;
class course
{
public:
course (string course name)
name = coursename;
}
string course:getname()
{
return name;
}
void course :addstudent(string student)
{
v.push.back(student);
}
vector(string)course:: getstudent
{
return 0 ;
}
int course::getNumberOfStudent()
{
return v.site;
}
private:
string name;
vector<string>v;
};
int main()
{
vector<string>student;
course course2("data structures");
course course2("database system");
course1.addstudent("LLL");
course1.addstudent("ppp");
course1.addstudent("kkk");
course2.addstudent("jjj");
course2.addstudent("hhh");
cout << "the number of student in course1 is << course 1.getNumberOfStudent()<<end1;
for(i = 0;i<course1.getNumberOfStudent();i++)
{
cout << student[i]<<","<<end1;
}
cout << "the number of student in course2 is << course 2.getNumberOfStudent()<<end1;
for(i=0;i < course.getNumberOfStudent;i++)
{
cout << student[i]<<",";
cout<<end1;
}
cout<<"the number of the course is "<< course1.getname()<<end1;
cout<<"the number of the course is "<<course2.getname()<<end1;
return 0;
}
still got 4 error can someone help me correct it