НАПИСАТЬ ОПИСАНИЕ КОДА , КАК ОН БЫЛ НАПИСАН , ВСЕ ФУНКЦИИ #include #include #include #include #include #include #include #include #define n 10 using namespace std; struct FIO { char surname[100]; char name[100]; char fatherland[100]; }; struct Data { int day, month, year; }; struct Pasport { int num; Data bday; string citi; string street; int home, sq; }; struct Hotel { FIO fio; Pasport pas; char cel[100]; Data reg; Data otzd; double sum; }; void Show(Hotel a[n]) { cout > dd >> mm >> yy; //1 Ввод с клавиатуры данных в массив, состоящий из 10 структур типа Hotel for (int i = 0; i > a[i].fio.fatherland >> a[i].fio.name >> a[i].fio.surname; cout > a[i].pas.num; cout > a[i].pas.bday.day >> a[i].pas.bday.month >> a[i].pas.bday.year; cout > a[i].pas.citi >> a[i].pas.street >> a[i].pas.home >> a[i].pas.sq; cout > a[i].cel; cout > a[i].reg.day >> a[i].reg.month >> a[i].reg.year; cout > a[i].otzd.day >> a[i].otzd.month >> a[i].otzd.year; cout > a[i].sum; }
226
252
Ответы на вопрос:
налить воду в кувшин 8 л., вылить 3л. в другой кувшин, в 8 литровом кувшине останется 5 литров.
вылить воду из 3л. кувшина и налить в него из 8 литрового кувшина(в нем сейчас 5л.) останется в нем 2 литра.
вылить воду из 3л. кувшина и налить в него из 8 литрового остаток (2 литра).
налить полный 8 литровый кувшин и отлить в 3 литровый(в котором сейчас 2 л.) не достающий 1 литр и в 8 литровом кувшине останется 7 литров.
Популярно: Информатика
-
bushukova16bk04.08.2021 00:40
-
gv8ux17.02.2022 02:17
-
Ppapit23.04.2020 14:16
-
aaannnaaa102.03.2021 01:02
-
barbara2718.11.2022 03:29
-
qwertyqwerty123308.12.2020 05:43
-
goldlena197901.10.2020 21:05
-
lizadyugovskay03.05.2023 21:52
-
ladusik6909.10.2020 16:10
-
BeNetCat11.06.2022 01:27