Skip to content

Commit

Permalink
Fix Encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ermolaevv committed Oct 31, 2023
1 parent dd8efd0 commit 580c607
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions stack/samples/stack_sample.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <iostream>
#include <iostream>
#include "MyStack.h"
using namespace std;

Expand All @@ -8,22 +8,22 @@ int main(int argc, char** argv) {
size_t size, op;
int el;
try {
cout << "Ââåäèòå ðàçìåð ñòåêà: ";
cout << "Введите размер стека: ";
cin >> size;
TStack<int> s(size);
while (true) {
cout << "Ìåíþ îïåðàöèé:\n"
<< "1. Äîáàâèòü â ñòåê\n"
<< "2. Óäàëèòü ýëåìåíò\n"
<< "3. Âåðõíèé ýëåìåíò\n"
<< "4. Êîëè÷åñòâî ýëåìåíòîâ\n"
<< "5. Ðàçìåð\n"
<< "Ââåñòè îïåðàöèþ: ";
cout << "Меню операций:\n"
<< "1. Добавить в стек\n"
<< "2. Удалить элемент\n"
<< "3. Верхний элемент\n"
<< "4. Количество элементов\n"
<< "5. Размер\n"
<< "Ввести операцию: ";
cin >> op;
cout << endl;
switch (op) {
case 1:
cout << "Ââåäèòå ýëåìåíò (int): ";
cout << "Введите элемент (int): ";
cin >> el;
s.Push(el);
break;
Expand Down

0 comments on commit 580c607

Please sign in to comment.