This commit is contained in:
Leon Wilzer 2022-10-27 22:32:19 +02:00
parent 9c0cc4eedf
commit 636529ec05
3 changed files with 17 additions and 0 deletions

7
Makefile Normal file
View File

@ -0,0 +1,7 @@
setup:
mkdir build
sheet0:
g++ src/sheet0.cpp -o ./build/sheet0
run: sheet0
chmod +x build/
build/sheet0

BIN
build/sheet0 Executable file

Binary file not shown.

10
src/sheet0.cpp Normal file
View File

@ -0,0 +1,10 @@
#include <iostream>
int main()
{
int i;
std::cout << "Enter an integer: ";
std::cin >> i;
std::cout << "Number: " << i << "!\n";
return 0;
}