From 5db5e35a69dedb7fed2ee6e374e5ef0990cceb25 Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Thu, 9 Oct 2025 14:35:04 +0300 Subject: [PATCH 01/16] add src --- src/hello.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/hello.c diff --git a/src/hello.c b/src/hello.c new file mode 100644 index 0000000..807d128 --- /dev/null +++ b/src/hello.c @@ -0,0 +1,8 @@ +#include +int main() +{ + printf("Hello, world!\n"); + + + return 0; +} From d0c62119c36fa971a3fdecb930d2ef6926b959ae Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Thu, 16 Oct 2025 19:33:06 +0300 Subject: [PATCH 02/16] add stack --- src/hello.c | 8 -------- src/instruction.txt | 9 +++++++++ src/stack.c | 47 +++++++++++++++++++++++++++++++++++++++++++++ src/stack.h | 15 +++++++++++++++ 4 files changed, 71 insertions(+), 8 deletions(-) delete mode 100644 src/hello.c create mode 100644 src/instruction.txt create mode 100644 src/stack.c create mode 100644 src/stack.h diff --git a/src/hello.c b/src/hello.c deleted file mode 100644 index 807d128..0000000 --- a/src/hello.c +++ /dev/null @@ -1,8 +0,0 @@ -#include -int main() -{ - printf("Hello, world!\n"); - - - return 0; -} diff --git a/src/instruction.txt b/src/instruction.txt new file mode 100644 index 0000000..bb218c5 --- /dev/null +++ b/src/instruction.txt @@ -0,0 +1,9 @@ +Task1: +gcc -Wall -Wextra -pedantic -c stack.c +gcc -Wall -Wextra -pedantic -c task1.c +gcc -Wall -Wextra -pedantic stack.o task1.o -o steakTask1 + +Task2: +gcc -Wall -Wextra -pedantic -c stack.c +gcc -Wall -Wextra -pedantic -c task2.c +gcc -Wall -Wextra -pedantic stack.o task2.o -o steakTask2 \ No newline at end of file diff --git a/src/stack.c b/src/stack.c new file mode 100644 index 0000000..585139c --- /dev/null +++ b/src/stack.c @@ -0,0 +1,47 @@ +#include +#include + +struct StackNode { + int value; + struct StackNode* next; +}; + +struct Stack { + struct StackNode* head; +}; + +struct Stack new(void) +{ + struct Stack stack = { + .head = NULL + }; + return stack; +} + +void push(struct Stack* stack, int value) +{ + struct StackNode* node = (struct StackNode*)malloc(sizeof(struct StackNode)); + + node->value = value; + node->next = stack->head; + stack->head = node; +} + +int pop(struct Stack* stack) +{ + if (stack->head == NULL) { + return 0; + } + struct StackNode* oldNode = stack->head; + int res = oldNode->value; + stack->head = oldNode->next; + + free(oldNode); + + return res; +} + +int isEmpty(struct Stack* stack) +{ + return stack->head == NULL; +} diff --git a/src/stack.h b/src/stack.h new file mode 100644 index 0000000..e012d21 --- /dev/null +++ b/src/stack.h @@ -0,0 +1,15 @@ +#pragma once + +struct StackNode { + int value; + struct StackNode* next; +}; + +struct Stack { + struct StackNode* head; +}; + +struct Stack new(void); +void push(struct Stack* stack, int value); +int pop(struct Stack* stack); +int isEmpty(struct Stack* stack); From 268813de7575cd88b21c31b2db2aa3a7aadf4c9b Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Thu, 30 Oct 2025 00:45:57 +0300 Subject: [PATCH 03/16] add dir stack/ --- src/{ => stack}/stack.c | 0 src/{ => stack}/stack.h | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename src/{ => stack}/stack.c (100%) rename src/{ => stack}/stack.h (100%) diff --git a/src/stack.c b/src/stack/stack.c similarity index 100% rename from src/stack.c rename to src/stack/stack.c diff --git a/src/stack.h b/src/stack/stack.h similarity index 100% rename from src/stack.h rename to src/stack/stack.h From 9103dd9bfeb5fb1fc6281e37a1923692b3323126 Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Thu, 16 Oct 2025 19:48:03 +0300 Subject: [PATCH 04/16] add task2.c (stack) --- src/task2.c | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 src/task2.c diff --git a/src/task2.c b/src/task2.c new file mode 100644 index 0000000..1b4f9a9 --- /dev/null +++ b/src/task2.c @@ -0,0 +1,70 @@ +#include "stack.h" +#include +#include + +int precedence(char op) +{ + if (op == '*' || op == '/') + return 2; + if (op == '+' || op == '-') + return 1; + return 0; +} + +int isOperator(char c) +{ + return c == '+' || c == '-' || c == '*' || c == '/'; +} + +int isDigit(char c) +{ + return c >= '0' && c <= '9'; +} + +void infixToPostfix(char* infix, char* postfix) +{ + struct Stack st = new(); + int rpn = 0; + + for (int i = 0; infix[i] != '\0'; ++i) { + char c = infix[i]; + + if (isDigit(c)) { + postfix[rpn++] = c; + } else if (c == '(') { + push(&st, (int)c); + } else if (c == ')') { + while (!isEmpty(&st)) { + int top = pop(&st); + if (top == '(') + break; + postfix[rpn++] = (char)top; + } + } else if (isOperator(c)) { + while (!isEmpty(&st) && precedence((char)st.head->value) >= precedence(c)) { + postfix[rpn++] = (char)pop(&st); + } + push(&st, (int)c); + } + } + + while (!isEmpty(&st)) { + postfix[rpn++] = (char)pop(&st); + } + + postfix[rpn] = '\0'; +} + +int main(void) +{ + char input[100]; + char output[100]; + + printf("инфиксное выражение:\n"); + scanf("%s\n", input); + + infixToPostfix(input, output); + printf("постфиксное выражение: %s\n", output); + + return 0; +} \ No newline at end of file From de6c8bb292669d7f08ab6285a0f873f305d6d938 Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Thu, 30 Oct 2025 01:12:35 +0300 Subject: [PATCH 05/16] add task2.c to stack/ --- src/stack/task2.c | 70 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 src/stack/task2.c diff --git a/src/stack/task2.c b/src/stack/task2.c new file mode 100644 index 0000000..1b4f9a9 --- /dev/null +++ b/src/stack/task2.c @@ -0,0 +1,70 @@ +#include "stack.h" +#include +#include + +int precedence(char op) +{ + if (op == '*' || op == '/') + return 2; + if (op == '+' || op == '-') + return 1; + return 0; +} + +int isOperator(char c) +{ + return c == '+' || c == '-' || c == '*' || c == '/'; +} + +int isDigit(char c) +{ + return c >= '0' && c <= '9'; +} + +void infixToPostfix(char* infix, char* postfix) +{ + struct Stack st = new(); + int rpn = 0; + + for (int i = 0; infix[i] != '\0'; ++i) { + char c = infix[i]; + + if (isDigit(c)) { + postfix[rpn++] = c; + } else if (c == '(') { + push(&st, (int)c); + } else if (c == ')') { + while (!isEmpty(&st)) { + int top = pop(&st); + if (top == '(') + break; + postfix[rpn++] = (char)top; + } + } else if (isOperator(c)) { + while (!isEmpty(&st) && precedence((char)st.head->value) >= precedence(c)) { + postfix[rpn++] = (char)pop(&st); + } + push(&st, (int)c); + } + } + + while (!isEmpty(&st)) { + postfix[rpn++] = (char)pop(&st); + } + + postfix[rpn] = '\0'; +} + +int main(void) +{ + char input[100]; + char output[100]; + + printf("инфиксное выражение:\n"); + scanf("%s\n", input); + + infixToPostfix(input, output); + printf("постфиксное выражение: %s\n", output); + + return 0; +} \ No newline at end of file From 611666199c0f7b32d41582247aeb07bdf9e60bd6 Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Thu, 30 Oct 2025 01:24:56 +0300 Subject: [PATCH 06/16] move task2.c to stack/ --- src/task2.c | 70 ----------------------------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 src/task2.c diff --git a/src/task2.c b/src/task2.c deleted file mode 100644 index 1b4f9a9..0000000 --- a/src/task2.c +++ /dev/null @@ -1,70 +0,0 @@ -#include "stack.h" -#include -#include - -int precedence(char op) -{ - if (op == '*' || op == '/') - return 2; - if (op == '+' || op == '-') - return 1; - return 0; -} - -int isOperator(char c) -{ - return c == '+' || c == '-' || c == '*' || c == '/'; -} - -int isDigit(char c) -{ - return c >= '0' && c <= '9'; -} - -void infixToPostfix(char* infix, char* postfix) -{ - struct Stack st = new(); - int rpn = 0; - - for (int i = 0; infix[i] != '\0'; ++i) { - char c = infix[i]; - - if (isDigit(c)) { - postfix[rpn++] = c; - } else if (c == '(') { - push(&st, (int)c); - } else if (c == ')') { - while (!isEmpty(&st)) { - int top = pop(&st); - if (top == '(') - break; - postfix[rpn++] = (char)top; - } - } else if (isOperator(c)) { - while (!isEmpty(&st) && precedence((char)st.head->value) >= precedence(c)) { - postfix[rpn++] = (char)pop(&st); - } - push(&st, (int)c); - } - } - - while (!isEmpty(&st)) { - postfix[rpn++] = (char)pop(&st); - } - - postfix[rpn] = '\0'; -} - -int main(void) -{ - char input[100]; - char output[100]; - - printf("инфиксное выражение:\n"); - scanf("%s\n", input); - - infixToPostfix(input, output); - printf("постфиксное выражение: %s\n", output); - - return 0; -} \ No newline at end of file From 177d4612212b30d34bd19159545dc92ff040fdc5 Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Thu, 30 Oct 2025 01:27:32 +0300 Subject: [PATCH 07/16] move instruction.txt to stack/ --- src/{ => stack}/instruction.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/{ => stack}/instruction.txt (100%) diff --git a/src/instruction.txt b/src/stack/instruction.txt similarity index 100% rename from src/instruction.txt rename to src/stack/instruction.txt From 14cfea6e54b3eaf22fef716b487d1dd159ee6009 Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Fri, 31 Oct 2025 00:09:42 +0300 Subject: [PATCH 08/16] add CMake for stack --- src/stack/CmakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/stack/CmakeLists.txt diff --git a/src/stack/CmakeLists.txt b/src/stack/CmakeLists.txt new file mode 100644 index 0000000..e953bef --- /dev/null +++ b/src/stack/CmakeLists.txt @@ -0,0 +1,9 @@ +add_library(stack stack.c) + +add_executable(task1 task1.c) + +target_link_libraries(task1 PRIVATE stack) + +add_executable(task2 task2.c) + +target_link_libraries(task2 PRIVATE stack) From 16e57d9863b0cbfbea1660c0b1645fe40d988253 Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Sun, 14 Dec 2025 22:25:37 +0300 Subject: [PATCH 09/16] fixed stack.c --- src/stack/stack.c | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/stack/stack.c b/src/stack/stack.c index 585139c..017ad76 100644 --- a/src/stack/stack.c +++ b/src/stack/stack.c @@ -1,5 +1,6 @@ #include #include +#include "stack.h" struct StackNode { int value; @@ -10,11 +11,11 @@ struct Stack { struct StackNode* head; }; -struct Stack new(void) +Stack* new() { - struct Stack stack = { - .head = NULL - }; + Stack* stack = (Stack*)malloc(sizeof(Stack)); + if (!stack) return NULL; + stack->head = NULL; return stack; } @@ -27,21 +28,26 @@ void push(struct Stack* stack, int value) stack->head = node; } -int pop(struct Stack* stack) + +int pop(Stack* stack) { - if (stack->head == NULL) { - return 0; - } struct StackNode* oldNode = stack->head; int res = oldNode->value; - stack->head = oldNode->next; + stack->head = oldNode->next; free(oldNode); return res; } -int isEmpty(struct Stack* stack) +int isEmpty(Stack* stack) { return stack->head == NULL; } + +void delete(Stack* stack){ + while (!isEmpty(stack)) { + pop(stack); + } + free(stack); +} From 2049e5ee57457456c2b0c5187cab760ab88f2bae Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Sun, 14 Dec 2025 22:26:41 +0300 Subject: [PATCH 10/16] fixed stack.h --- src/stack/stack.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/stack/stack.h b/src/stack/stack.h index e012d21..b013a3f 100644 --- a/src/stack/stack.h +++ b/src/stack/stack.h @@ -1,15 +1,9 @@ #pragma once -struct StackNode { - int value; - struct StackNode* next; -}; +typedef struct Stack Stack; -struct Stack { - struct StackNode* head; -}; - -struct Stack new(void); -void push(struct Stack* stack, int value); -int pop(struct Stack* stack); -int isEmpty(struct Stack* stack); +Stack* new(); // создание стека +void push(Stack* stack, int value); // добавляеи элемент на вершину стека +int pop(Stack* stack); // убирает из стека элемент и возвращает его +int isEmpty(Stack* stack); +void delete(Stack* stack); // удаление стека \ No newline at end of file From a26f9bd790a0b99c3473add2e96a1d9aab37ecb3 Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Sun, 14 Dec 2025 22:35:44 +0300 Subject: [PATCH 11/16] formatting changes --- src/stack/stack.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/stack/stack.c b/src/stack/stack.c index 017ad76..c1c1b66 100644 --- a/src/stack/stack.c +++ b/src/stack/stack.c @@ -1,6 +1,6 @@ +#include "stack.h" #include #include -#include "stack.h" struct StackNode { int value; @@ -14,7 +14,8 @@ struct Stack { Stack* new() { Stack* stack = (Stack*)malloc(sizeof(Stack)); - if (!stack) return NULL; + if (!stack) + return NULL; stack->head = NULL; return stack; } @@ -28,7 +29,6 @@ void push(struct Stack* stack, int value) stack->head = node; } - int pop(Stack* stack) { struct StackNode* oldNode = stack->head; @@ -45,7 +45,8 @@ int isEmpty(Stack* stack) return stack->head == NULL; } -void delete(Stack* stack){ +void delete(Stack* stack) +{ while (!isEmpty(stack)) { pop(stack); } From 652c43cae14bc3a38e9454ed89f8094344d3a49b Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Sun, 21 Dec 2025 14:08:43 +0300 Subject: [PATCH 12/16] added comments for a function, changed the names of the deletion function --- src/stack/stack.c | 2 +- src/stack/stack.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/stack/stack.c b/src/stack/stack.c index c1c1b66..a9b4145 100644 --- a/src/stack/stack.c +++ b/src/stack/stack.c @@ -45,7 +45,7 @@ int isEmpty(Stack* stack) return stack->head == NULL; } -void delete(Stack* stack) +void deleteStack(Stack* stack) { while (!isEmpty(stack)) { pop(stack); diff --git a/src/stack/stack.h b/src/stack/stack.h index b013a3f..fa3abdb 100644 --- a/src/stack/stack.h +++ b/src/stack/stack.h @@ -2,8 +2,8 @@ typedef struct Stack Stack; -Stack* new(); // создание стека -void push(Stack* stack, int value); // добавляеи элемент на вершину стека -int pop(Stack* stack); // убирает из стека элемент и возвращает его +Stack* new(); // Создание стека. +void push(Stack* stack, int value); // Добавляет элемент на вершину стека. +int pop(Stack* stack); // Убирает из стека элемент и возвращает его. Необходимо проверять isEmpty перед вызовом int isEmpty(Stack* stack); -void delete(Stack* stack); // удаление стека \ No newline at end of file +void deleteStack(Stack* stack); // Удаление стека. \ No newline at end of file From 6e43bcff055868d527af838503d08d479c121b15 Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Sun, 21 Dec 2025 16:30:08 +0300 Subject: [PATCH 13/16] fixed task2.c --- src/stack/stack.c | 4 +-- src/stack/stack.h | 2 +- src/stack/task2.c | 67 ++++++++++++++++++++++++++++++++++++----------- 3 files changed, 54 insertions(+), 19 deletions(-) diff --git a/src/stack/stack.c b/src/stack/stack.c index a9b4145..4674854 100644 --- a/src/stack/stack.c +++ b/src/stack/stack.c @@ -11,7 +11,7 @@ struct Stack { struct StackNode* head; }; -Stack* new() +Stack* newStack() { Stack* stack = (Stack*)malloc(sizeof(Stack)); if (!stack) @@ -51,4 +51,4 @@ void deleteStack(Stack* stack) pop(stack); } free(stack); -} +} \ No newline at end of file diff --git a/src/stack/stack.h b/src/stack/stack.h index fa3abdb..cf0314a 100644 --- a/src/stack/stack.h +++ b/src/stack/stack.h @@ -2,7 +2,7 @@ typedef struct Stack Stack; -Stack* new(); // Создание стека. +Stack* newStack(); // Создание стека. void push(Stack* stack, int value); // Добавляет элемент на вершину стека. int pop(Stack* stack); // Убирает из стека элемент и возвращает его. Необходимо проверять isEmpty перед вызовом int isEmpty(Stack* stack); diff --git a/src/stack/task2.c b/src/stack/task2.c index 1b4f9a9..8acb6f8 100644 --- a/src/stack/task2.c +++ b/src/stack/task2.c @@ -21,49 +21,84 @@ int isDigit(char c) return c >= '0' && c <= '9'; } -void infixToPostfix(char* infix, char* postfix) +/* +Пользователь должен выделить минимум 2 * strlen(infix) символ. +return 1 — если преобразование прошло успешно, +return 0 — если ошибка (неправильные скобки или неподдерживаемый символ). +*/ +int infixToPostfix(char* infix, char* postfix) { - struct Stack st = new(); - int rpn = 0; + Stack* st = newStack(); + int rpn = 0; // индекс для записи в reverse polish notation(постфиксная запись) - for (int i = 0; infix[i] != '\0'; ++i) { + for (int i = 0; infix[i]; ++i) { char c = infix[i]; if (isDigit(c)) { postfix[rpn++] = c; } else if (c == '(') { - push(&st, (int)c); + push(st, c); } else if (c == ')') { - while (!isEmpty(&st)) { - int top = pop(&st); - if (top == '(') + int found = 0; + while (!isEmpty(st)) { + int top = pop(st); + if (top == '(') { + found = 1; break; + } postfix[rpn++] = (char)top; } + + if (!found) { + printf("лишняя закрывающая скобка ')'\n"); + deleteStack(st); + return 0; + } } else if (isOperator(c)) { - while (!isEmpty(&st) && precedence((char)st.head->value) >= precedence(c)) { - postfix[rpn++] = (char)pop(&st); + while (!isEmpty(st)) { + int top = pop(st); + if (precedence(top) < precedence(c)) { + push(st, top); + break; + } + postfix[rpn++] = (char)top; } - push(&st, (int)c); + push(st, c); + } else { + printf("неподдерживаемый символ '%c'\n", c); + deleteStack(st); + return 0; } } - while (!isEmpty(&st)) { - postfix[rpn++] = (char)pop(&st); + // проверка не осталось ли незакрытых скобок + while (!isEmpty(st)) { + int top = pop(st); + if (top == '(') { + printf("лишняя открывающая скобка '('\n"); + deleteStack(st); + return 0; + } + postfix[rpn++] = (char)top; } postfix[rpn] = '\0'; + deleteStack(st); + return 1; } int main(void) { char input[100]; - char output[100]; + char output[2 * 100]; printf("инфиксное выражение:\n"); - scanf("%s\n", input); + scanf("%99s", input); - infixToPostfix(input, output); + if (!infixToPostfix(input, output)) { + printf("ошибка.\n"); + return 1; + } printf("постфиксное выражение: %s\n", output); return 0; From e4474a7ca75c20b71b6b70888e91ee3380d93683 Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Sun, 21 Dec 2025 16:39:26 +0300 Subject: [PATCH 14/16] add CMake --- CmakeLists.txt | 6 ++++++ src/stack/CmakeLists.txt | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 CmakeLists.txt diff --git a/CmakeLists.txt b/CmakeLists.txt new file mode 100644 index 0000000..8616e4f --- /dev/null +++ b/CmakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required(VERSION 3.25) +project(homeworks C) + +add_compile_options(-Wall -Wextra -pedantic) + +add_subdirectory(src/stack) \ No newline at end of file diff --git a/src/stack/CmakeLists.txt b/src/stack/CmakeLists.txt index e953bef..18d415a 100644 --- a/src/stack/CmakeLists.txt +++ b/src/stack/CmakeLists.txt @@ -1,9 +1,5 @@ add_library(stack stack.c) -add_executable(task1 task1.c) - -target_link_libraries(task1 PRIVATE stack) - add_executable(task2 task2.c) target_link_libraries(task2 PRIVATE stack) From 3f755263e3eec4d88f01db324b947cfaff1d2118 Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Sun, 21 Dec 2025 17:04:32 +0300 Subject: [PATCH 15/16] fixed CMake --- CMakeLists.txt | 6 ++++++ src/stack/CMakeLists.txt | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 src/stack/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..8616e4f --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required(VERSION 3.25) +project(homeworks C) + +add_compile_options(-Wall -Wextra -pedantic) + +add_subdirectory(src/stack) \ No newline at end of file diff --git a/src/stack/CMakeLists.txt b/src/stack/CMakeLists.txt new file mode 100644 index 0000000..18d415a --- /dev/null +++ b/src/stack/CMakeLists.txt @@ -0,0 +1,5 @@ +add_library(stack stack.c) + +add_executable(task2 task2.c) + +target_link_libraries(task2 PRIVATE stack) From eec838cfec102c8535ffd344c8b7894e514871a3 Mon Sep 17 00:00:00 2001 From: anna shalahina Date: Sun, 21 Dec 2025 17:07:28 +0300 Subject: [PATCH 16/16] fixed cmake again.. --- CmakeLists.txt | 6 ------ src/stack/CmakeLists.txt | 5 ----- 2 files changed, 11 deletions(-) delete mode 100644 CmakeLists.txt delete mode 100644 src/stack/CmakeLists.txt diff --git a/CmakeLists.txt b/CmakeLists.txt deleted file mode 100644 index 8616e4f..0000000 --- a/CmakeLists.txt +++ /dev/null @@ -1,6 +0,0 @@ -cmake_minimum_required(VERSION 3.25) -project(homeworks C) - -add_compile_options(-Wall -Wextra -pedantic) - -add_subdirectory(src/stack) \ No newline at end of file diff --git a/src/stack/CmakeLists.txt b/src/stack/CmakeLists.txt deleted file mode 100644 index 18d415a..0000000 --- a/src/stack/CmakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -add_library(stack stack.c) - -add_executable(task2 task2.c) - -target_link_libraries(task2 PRIVATE stack)