Skip to content

Commit

Permalink
stack completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexxx180 committed May 19, 2024
1 parent 66477f4 commit 4bf62c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions header/common/texts/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ static const std::map<std::string, std::wstring> texts = {
{ "program_author", L"\u0410\u0432\u0442\u043e\u0440: \u0422\u0430\u0442\u0430\u0440\u0438\u043d\u0446\u0435\u0432 \u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440" }, // Автор: Татаринцев Александр

// Common text
{ "last_input", L"- Last Input (LI" },
{ "first_input", L"- First Input (FI" },
{ "first_output", L"- First Output FO)" },
{ "max_elements", L"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0434\u0435\u043c\u043e: 10" }, // Максимальное количество элементов в рамках демо: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

MenuItem StackFillMenu() {
MenuItem stack, q[2];
q[0].SetCommand(new Label("menu_operations_randomized"), StackRandomized);
q[1].SetCommand(new Label("menu_operations_reset"), StackReset);
q[0].SetCommand(new Label("menu_fill_randomized"), StackRandomized);
q[1].SetCommand(new Label("menu_fill_reset"), StackReset);

stack.SetItems(new Label("menu_stack"))->Vertical(true);
for (char i = 0; i < 2; i++) stack.Add(&q[i]);
Expand Down
1 change: 1 addition & 0 deletions source/task/structure/process/structures/menu/stack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Stack model;

void StackRandomized() {
StackInfo();
model.Randomized();
model.Show();
}
Expand Down
Binary file modified target.exe
Binary file not shown.

0 comments on commit 4bf62c5

Please sign in to comment.