-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathmain.cpp
More file actions
24 lines (21 loc) · 715 Bytes
/
main.cpp
File metadata and controls
24 lines (21 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <project-abbr/config.hpp>
#include <project-abbr/factorial.hpp>
#include <project-abbr/hello_world.hpp>
#include <iostream>
#include <string>
int main(int argc, char* argv[])
{
HelloWorld helloWorld;
if (argc == 2 && std::string{ argv[1] } == "--version")
{
std::cout << "Project Name version " << VERSION << "\n";
std::cout << "Copyright information here\n";
std::cout << "More copyright details.\n\n";
}
else
{
std::cout << helloWorld.hello() << ", " << helloWorld.world() << "!\n";
std::cout << "Random number = " << helloWorld.generateRandomNumber() << "\n";
std::cout << "Factorial(5) = " << factorial(5) << "\n";
}
}