rendered paste body#include<iostream>
using namespace std;
struct train
{
int nomer;
double times;
char finish[20];
};
int main()
{
train account[5];
for(int i=0; i<=5; i++)
{
cout<<"Введите номер поезда: ";
cin>>account[5].nomer;
cout<<"Введите пункт назначения: ";
cin>>account[5].finish;
cout<<"Введите время отправки: ";
cin>>account[5].times;
cout<<endl;
}
char search[20];// вот с етого момента я немоу додуматся
cout<<"Введите пункт назначения поезда для поиска: ";
cin>>search;
//for(int i=0; i<=5; i++)
//{
if(search==account[5].finish)
{
for(int i=0; i<=5; i++);
//for(int i=0; i<=5; i++)
cout<<"1";//<<" "<<account[6].finish<<" "<<account[6].times<<endl;
}
else
cout<<"Такого поезда нет. \a"<<endl;
system("pause");
return 0;
}