#include <iostream>
using namespace std;
class student{
private:
string name;
float marks;
public:
void enterdata()
{
cout<<“Enter name of student\n”;
cin>>name;
cout<<“Enter marks of student\n”;
cin>>marks;
}
void showdata()
{
cout<<“Name of student\n”<<name;
cout<<“Marks of student\n”<<marks;
}
};
int main(int argc,char** argv)
{
student s1,s2;
cout<<“Enter the data of student 1\n”;
s1.enterdata();
cout<<“Enter the data of student 2\n”;
s2.enterdata();
cout<<“The data of student 1:\n”;
s1.showdata();
cout<<“The data of student 2:\n”;
s2.showdata();
return 0;
}