Vector konteyneridan foydalanib
kemalar ro’yxatida uzunligi, bo’yicha saralang. (Qo‘shish orqali saralash (Insertion sort))
#include #include using namespace std;
class samalyot{
protected:
string ismi;
int tezligi;
public:
void kirit(){
int n,i,b;
cout<<"Samalyot sonini kiriting: "; cin>>n;
string Nomi[n],fam[n],man[n],firmasi[n],sigim[n];
int tezligi[n],uzunligi[n];
for(i=0;icout<>Nomi[i];
cout<>tezligi[i];
cout<>uzunligi[i];