Skip to content

Commit

Permalink
Add simple hello world structure
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgoe committed Jan 24, 2021
1 parent 19fa82e commit c853f4d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
BasedOnStyle: Google
AccessModifierOffset: -4
AlignTrailingComments: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
ColumnLimit: 120
ConstructorInitializerIndentWidth: 8
Cpp11BracedListStyle: false
IndentCaseLabels: false
IndentWidth: 4
MaxEmptyLinesToKeep: 3
SortIncludes: false
SpaceAfterCStyleCast: true
SpaceBeforeAssignmentOperators: true
SpacesInParentheses: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
UseTab: Never
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terminalDonut
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ Original work: https://www.a1k0n.net/2011/07/20/donut-math.html

## The challenge
How long does it take for you to write a terminal program from scratch, which renders the same (or a similar) donut as above? No stackoverflow, no libraries (except terminal IO), no other sources. No preparation time. I did not read Andy's blog post before i started, just watched Joma's video. It's only allowed to look up elementary things (like how to clear the terminal window). Use any programming language you want. That said, let's start!

## How to run
g++ terminalDonut.cpp -o terminalDonut
./terminalDonut
7 changes: 7 additions & 0 deletions terminalDonut.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <iostream>

int main() {
std::cout << "Hello terminalDonut" << std::endl;

return 0;
}

0 comments on commit c853f4d

Please sign in to comment.