22 lines
311 B
C++
22 lines
311 B
C++
#include "BitcoinExchange.hpp"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
if (argc < 2)
|
|
{
|
|
std::cout << "Error: could not open file." << std::endl;
|
|
return 1;
|
|
}
|
|
BitcoinExchange btc;
|
|
try
|
|
{
|
|
btc.str(argv[1]);
|
|
}
|
|
catch (std::runtime_error &e)
|
|
{
|
|
std::cout << e.what() << std::endl;
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|