int main(int argc, char **argv) { std::cout << "IntradayBarExample" << std::endl; IntradayBarExample example; example.run(argc, argv); // wait for enter key to exit application std::cout << "Press ENTER to quit" << std::endl; char dummy[2]; std::cin.getline(dummy, 2); return 0; }
int main(int argc, char **argv) { std::cout << "IntradayBarExample" << std::endl; IntradayBarExample example; try { example.run(argc, argv); } catch (Exception &e) { std::cerr << "Library Exception!!! " << e.description() << std::endl; } // wait for enter key to exit application std::cout << "Press ENTER to quit" << std::endl; char dummy[2]; std::cin.getline(dummy, 2); return 0; }