From 7cd9e42d6d0c89f47a3167ce4a83ca63893ba7d6 Mon Sep 17 00:00:00 2001 From: stuffacc Date: Wed, 24 Dec 2025 21:47:47 +0300 Subject: [PATCH 1/2] CMakeLists.txt task 1 --- 1/CMakeLists.txt | 10 ++++++++++ 1/hello_world.c | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 1/CMakeLists.txt create mode 100644 1/hello_world.c diff --git a/1/CMakeLists.txt b/1/CMakeLists.txt new file mode 100644 index 0000000..e2e54f6 --- /dev/null +++ b/1/CMakeLists.txt @@ -0,0 +1,10 @@ +# Устанавливаем минимальную версию CMake +cmake_minimum_required(VERSION 3.25) +# Указываем название проекта и используемый язык(и) +set(CMAKE_C_STANDARD 99) +set(CMAKE_C_STANDARD_REQUIRED ON) + +project(HelloWorld C) + +# Создаем исполняемый файл +add_executable(HelloWorld hello_world.c) diff --git a/1/hello_world.c b/1/hello_world.c new file mode 100644 index 0000000..13cc576 --- /dev/null +++ b/1/hello_world.c @@ -0,0 +1,5 @@ +#include + +void main() { + printf("Hello World!\n"); +} From d071c04a34678c474c80cefbc0cd819210fbc074 Mon Sep 17 00:00:00 2001 From: stuffacc Date: Wed, 24 Dec 2025 21:50:17 +0300 Subject: [PATCH 2/2] WEBKIT --- 1/hello_world.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/1/hello_world.c b/1/hello_world.c index 13cc576..ccc3e33 100644 --- a/1/hello_world.c +++ b/1/hello_world.c @@ -1,5 +1,6 @@ #include -void main() { +void main() +{ printf("Hello World!\n"); }