diff --git a/lib.hpp b/lib.hpp index e4ac08d..67b90cc 100644 --- a/lib.hpp +++ b/lib.hpp @@ -11,7 +11,7 @@ #include const float Pi {3.1415926535897}; // I conseidered this value for π. -const char Version[10] {"1.1"}; // Version's number. +const char Version[10] {"1.1.1"}; // Version's number. // Help message void helpMessage() { @@ -36,7 +36,6 @@ std::cout << "version: Show the version of program [easarea version]\n\n" "help: Show this message [easarea help]\n\n"; - } // Parse interger @@ -68,6 +67,7 @@ float circleParts( const float angle ) { } else if ( angle <= 0 ) { std::cout << "The angle can't be a value lower or equal than 0º.\n"; return 0; - } else return 360 / angle; - + } else { + return 360 / angle; + } } diff --git a/main.cpp b/main.cpp index 1706c84..7635bb1 100644 --- a/main.cpp +++ b/main.cpp @@ -50,6 +50,7 @@ int main( int argc, char* argv[] ) { std::cout << "Version: " << Version << "\nProgram created by: Samuel de Oliveira\n"; return 0; } + // If the command doesn't exist else { std::cout << "You digit a invalid argument! Digit 'easarea help' for more info.\n";