-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0_64ui.cpp
37 lines (26 loc) · 891 Bytes
/
0_64ui.cpp
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
26
27
28
29
30
31
32
33
34
35
36
37
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "ru");
/*const int SIZE = 5;
const int SIZE_2 = 2;
string student_1_group[SIZE] = { ("Jamala", "Danial", "Fahur", "Khalia", "Shiva") };
string student_2_group[SIZE_2] = { ("Russian", "Indian") };
string true_name;
cout << "Введите имя: " << endl;
cin >> true_name;
int a = 0;
for (int i = 0; i < SIZE; i++) {
if (student_1_group[i] == true_name) {
a = 1;
}
else if (student_2_group[i] != true_name) {
a = 2;
}
if (a == 0)cout << "Нет такого имени." << endl;
else if (a == 1)cout << "Студенты 1." << endl;
else if (a == 2)cout << "Студенты 2." << endl;
} */
}