This commit is contained in:
Arti Zirk 2022-11-20 12:49:03 +02:00
commit 4ca816a933
3 changed files with 23 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.idea/
cmake-*

6
CMakeLists.txt Normal file
View File

@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.24)
project(HelloWorld)
set(CMAKE_CXX_STANDARD 23)
add_compile_options(-Wall -Wextra -pedantic-errors -Werror -Weffc++ -Wsign-conversion)
add_executable(HelloWorld main.cpp)

15
main.cpp Normal file
View File

@ -0,0 +1,15 @@
#include <iostream>
#include <cstdint>
int main() {
std::cout << "Enter two numbers: ";
uint32_t x, y;
std::cin >> x >> y;
std::cout << "got " << x << " and " << y << '\n';
return 0;
}