#include
#include
using namespace std;
struct Korabl
{
string nomi;
int suvsiljishi;
string turi;
int yoshi;
};
int main (){
ifstream fin("korabl.txt");//fayldan o`qish uchun ochish
int n;//korabl
fin>>n;
Korabl s[n+1];
for(int i=1;i<=n;i++){
fin>>s[i].nomi>>s[i].suvsiljishi>>s[i].turi>>s[i].yoshi;
}
cout<<"Korabl "<for(int i=1;i<=n;i++){
if(s[i].yoshi<5)
cout< }
}
Do'stlaringiz bilan baham: |