diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..b57e211 --- /dev/null +++ b/main.cpp @@ -0,0 +1,20 @@ +#include +#include +#include "JsonService.h" +#include "Weather.h" + +int main() { + try { + JsonService js; + Weather w = js.getWeather("endpoints/weather.json"); + + std::cout << "Weather object created" << std::endl; + w.printWeather(); + } + catch (const std::exception& e) { + std::cerr << "Error: " << e.what() << std::endl; + return 1; + } + + return 0; +}