1
0

Initial commit.

Lesson 1.5.
This commit is contained in:
Captain ALM 2022-08-12 14:59:08 +01:00
commit 9c034ccfcc
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1
3 changed files with 55 additions and 0 deletions

7
.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
### CodeBlocks ###
# specific to CodeBlocks IDE
*.layout
*.depend
# generated directories
bin/
obj/

38
CppTutorial.cbp Normal file
View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="CppTutorial" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/CppTutorial" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin/Release/CppTutorial" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add option="-fexceptions" />
</Compiler>
<Unit filename="main.cpp" />
<Extensions />
</Project>
</CodeBlocks_project_file>

10
main.cpp Normal file
View File

@ -0,0 +1,10 @@
#include <iostream>
int main()
{
int x{ 0 };
std::cout << "Number Repeater:\nEnter the Number: ";
std::cin >> x;
std::cout << std::endl << "You Entered: " << x << "!\n";
return 0;
}