Anda di halaman 1dari 2

#include <iostream>

using namespace std;


class PSL
{
int M,W,L,T,P;
public:
PSL()
{
M=0;
W=0;
L=0;
P=0;
T=0;
}
PSL(int MM,int WW,int LL,int TT,int PP)
{
M=MM;
W=WW;
L=LL;
T=TT;
P=PP;

showdata()
{
//cout<<"TEAM \t \t M\tW\tL\tT\tP";
//cout<<"KK \nMS \nQG \nPZ \nIU \nLQ";
cout<<"\t"<< M<<"\t"<<W<<"\t"<<L<<"\t"<<T<<"\t"<<P<<"\n";
/*cout<<"MS"<< M<<"\t"<<W<<"\t"<<L<<"\t"<<T<<"\t"<<P<<"\n";
cout<<"QG"<< M<<"\t"<<W<<"\t"<<L<<"\t"<<T<<"\t"<<P<<"\n";
cout<<"PZ"<< M<<"\t"<<W<<"\t"<<L<<"\t"<<T<<"\t"<<P<<"\n";
cout<<"IU"<< M<<"\t"<<W<<"\t"<<L<<"\t"<<T<<"\t"<<P<<"\n";
cout<<"LQ"<< M<<"\t"<<W<<"\t"<<L<<"\t"<<T<<"\t"<<P<<"\n";
*/
}
ShowData() const
{
cout<<"\t"<< M<<"\t"<<W<<"\t"<<L<<"\t"<<T<<"\t"<<P<<"\n";
}
getdata()
{
cin>>M;
cin>>W;
cin>>L;
cin>>T;
cin>>P;
}
};
int main()
{
static PSL kk,ms,qg,pz,iu;
const PSL lq(2,0,2,0,0);
cout<<"enter the performence of karachi king ";
kk.getdata();
cout<<"enter the performence of multan sultan ";
ms.getdata();
cout<<"enter the performence of quetta gladiator ";
qg.getdata();
cout<<"enter the performence of peshawar zalmi ";
pz.getdata();
cout<<"enter the performence of islamabad united";
iu.getdata();

cout<<"TEAM \t \t M\tW\tL\tT\tP";
cout<<"KK \nMS \nQG \nPZ \nIU \nLQ";
kk.showdata();
ms.showdata();
qg.showdata();
pz.showdata();
iu.showdata();
lq.ShowData();

system("pause");
return 0;
}