1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include
using namespace std;
struct things
{
int number;
float weight; };
struct luggage{char fam[10];
things den; };
int main()
{ luggage spis[11]; const int n=10; int i;
for (i=1; i< =n; i++)
{ cout< < ("\n passengers ")<
cin> > spis[i].fam;
cout< < ("\n vvedi number and weight")<
cin> > spis[i].den.number> > spis[i].den.weight; };
return 0;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include
#include
#include
using namespace std;
struct things
{
int number;
float weight; };
struct luggage{char fam[10];
things den; };
int main()
{ luggage spis[11]; const int n=10; int i;
for (i=1; i< =n; i++)
{ cout< < ("\n passengers ")<
cin> > spis[i].fam;
cout< < ("\n vvedi number and weight")<
cin> > spis[i].den.number> > spis[i].den.weight; };
return 0;
}