-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStringMain.cpp
More file actions
52 lines (50 loc) · 1.11 KB
/
StringMain.cpp
File metadata and controls
52 lines (50 loc) · 1.11 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
//#include "String.h"
//
//int main()
//{
// String txt_1;
// txt_1.Vvod();
// txt_1.Show();
// cout << "Prefiksna operacia ++ :\n";
// String txt_2 = ++txt_1;
// txt_2.Show();
// cout << "Postfiksna operacia ++ :\n";
// String txt_3 = txt_1++;
// txt_1.Show();
// txt_3.Show();
//
// String txt_4;
// txt_4.Vvod();
// txt_4.Show();
// cout << "Prefiksna operacia -- :\n";
// String txt_5 = --txt_4;
// txt_5.Show();
// cout << "Postfiksna operacia -- :\n";
// String txt_6 = txt_4--;
// txt_4.Show();
// txt_6.Show();
//
// int ind;
// cout << "Vvedit indeks elementy dlya poshyka:\n";
// cin >> ind;
// cin.ignore();
// cout << "Element za vkazanum indeksom:\n";
// cout << txt_1[ind] << "\n";
//
// cout << "Vvedit sumvol dlya poshyka: \n";
// char ch;
// ch = getchar();
// int indL;
// cout << "Vvedit livy megy dlya poshyka sumvola: ";
// cin >> indL;
// cin.ignore();
// int indR;
// cout << "Vvedit pravy megy dlya poshyka sumvola: ";
// cin >> indR;
// cin.ignore();
// cout << "Index vkazanogo elementa:\n";
// cout << txt_1(ch, indL, indR) << "\n";
//
// cout << "Peretvorennia do tupy int:\n";
// cout << int(txt_1);
//}