Skip to content

add files#26

Open
Quark1111 wants to merge 3 commits intomainfrom
Sort
Open

add files#26
Quark1111 wants to merge 3 commits intomainfrom
Sort

Conversation

@Quark1111
Copy link
Owner

No description provided.

@Quark1111 Quark1111 requested a review from chernishev December 11, 2025 23:47
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)

add_executable(sorting src/main.c src/sort.c)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А это работает, Вы проверяли? Вроде, CMake без каких-то особых конфигураций будет смотреть пути только относительно текущей директории (той, где лежит CMakeLists).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну да, я проверил, и это не работает. Во-первых, из-за того что пути надо указывать относительно CMakeLists, а во-вторых, у Вас всё равно указаны не существующие пути.

#include <stdlib.h>
#include <stdio.h>

int StrToInt(char *String, int ind)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это не нужно. Воспользуйтесь scanf.

@@ -0,0 +1,13 @@
#include <stdio.h>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужно включать sort.h. Иначе не слинкуется.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants