@@ -18,14 +18,12 @@ int main(int argc, char* argv[]) {
1818 gen.seed (time (0 ));
1919 std::stringstream ss;
2020
21- std::cout << " Hello, this is NetLicensing demo client \n " ;
21+ std::cout << " Hello, this is Labs64 NetLicensing Client (C++) demo \n " ;
2222
2323 try {
2424 Context ctx;
2525 ctx.set_base_url (" https://go.netlicensing.io/core/v2/rest/" );
26- std::cout << " NetLicensing URL: https://go.netlicensing.io/core/v2/rest/" << std::endl;;
2726 ctx.set_username (" demo" );
28- std::cout << " Account:demo" << std::endl;;
2927 ctx.set_password (" demo" );
3028
3129 if (licensee_number.empty ()) {
@@ -36,11 +34,13 @@ int main(int argc, char* argv[]) {
3634
3735 } while (licensee_number.empty ());
3836
39- std::cout << " start validation for " << licensee_number << std::endl;
37+ std::cout << " Start validation for " << licensee_number << std::endl;
38+ std::cout << " NetLicensing URL: https://go.netlicensing.io/core/v2/rest/" << std::endl;
39+ std::cout << " NetLicensing Account: demo" << std::endl;
4040 ValidationResult vres = LicenseeService::validate (ctx, licensee_number);
41- std::cout << " got validation results:\n " << vres.toString () << std::endl;
41+ std::cout << " Got validation results:\n " << vres.toString () << std::endl;
4242
43- std::cout << " Please press enter key for exit" << std::endl;
43+ std::cout << " \n Press any key to exit... " << std::endl;
4444 std::cin.ignore ();
4545 }
4646 }
@@ -49,13 +49,13 @@ int main(int argc, char* argv[]) {
4949 for (auto det : e.get_details ()) {
5050 std::cerr << det.to_string () << std::endl;
5151 }
52- std::cout << " Please press enter key for exit" << std::endl;
52+ std::cout << " \n Press any key to exit... " << std::endl;
5353 std::cin.ignore ();
5454 return 2 ;
5555 }
5656 catch (const std::runtime_error& err) {
5757 std::cerr << err.what () << std::endl;
58- std::cout << " Please press enter key for exit" << std::endl;
58+ std::cout << " \n Press any key to exit... " << std::endl;
5959 std::cin.ignore ();
6060 return 1 ;
6161 }
0 commit comments