From 580c6079eb57d25d7e8b20086ffde514d57328b8 Mon Sep 17 00:00:00 2001 From: ermolaevv Date: Tue, 31 Oct 2023 12:48:32 +0300 Subject: [PATCH] Fix Encoding --- stack/samples/stack_sample.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/stack/samples/stack_sample.cpp b/stack/samples/stack_sample.cpp index 4430bab..299be1e 100644 --- a/stack/samples/stack_sample.cpp +++ b/stack/samples/stack_sample.cpp @@ -1,4 +1,4 @@ -#include +#include #include "MyStack.h" using namespace std; @@ -8,22 +8,22 @@ int main(int argc, char** argv) { size_t size, op; int el; try { - cout << " : "; + cout << "Введите размер стека: "; cin >> size; TStack 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;