I'm have made many programs on this language .let me show you a simple code that gets input of workers of different position or ids and shows them
#include<iostream>
#include<string>
using namespace std;
class Employee{
protected:
string name;
int id;
string depart,position;
public:
Employee (string n,int i,string d,string p):name("n"),id(i),depart("d"),position("p"){
}Employee (string n,int i):name("n"),id(i),depart(""),position(""){
}Employee ():name(""),id(0),depart(""),position(""){
}void set(){
cout<<"Enter name ";
cin>>name;
cout<<"Enter id ";
cin>>id;
cout<<"Enter department ";
cin>>depart;
cout<<"Enter position ";
cin>>position;
cout<<endl;
}void show(){
cout<<name<<" "<<id<<" "<<depart<<" "<<" "<<position<<endl;
}
};int main(){
Employee a,b,c;
a.set();
b.set();
c.set();
cout<<"Name____ID_____Department______position"<<endl;
[login to view URL]();
[login to view URL]();
[login to view URL]();
}