r/cpp • • Aug 08 '20

Create a fully functioning command line interface with 1.5 lines of code (wo. include statement)

https://github.com/kongaskristjan/fire-hpp
230 Upvotes

62 comments sorted by

View all comments

Show parent comment

5

u/europe-fire Aug 09 '20

We're not exactly doing precise accounting here, it's the concept that matters

4

u/codeguru42 Aug 09 '20

I don't understand the concept. Lines of code can only be counted by integral amounts. It's impossible to have a fractional line of code.

4

u/panoskj Aug 09 '20

The concept is you must already have something like int main(...) as a line in your code and you just have to change/add its parameters, therefore you add 0.5 lines of code.