Skip to content

Commit

Permalink
Final version
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-de-Oliveira committed Feb 10, 2023
1 parent 7a3679c commit d8c1bee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <sstream>

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() {
Expand All @@ -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
Expand Down Expand Up @@ -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;
}
}
1 change: 1 addition & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit d8c1bee

Please sign in to comment.