Ported the CommandLineArguments-Java class over to C++. Also made the main method a static method and added a unit test.