「🏗️」 wip: started ex00
This commit is contained in:
29
ex00/main.cpp
Normal file
29
ex00/main.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* main.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/05/21 10:34:50 by adjoly #+# #+# */
|
||||
/* Updated: 2025/05/30 20:30:28 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <BitcoinExchange.hpp>
|
||||
#include <cstdlib>
|
||||
#include <exception>
|
||||
|
||||
int main(int ac, char **av) {
|
||||
(void)av;
|
||||
if (ac > 1) {
|
||||
CsvParser *parser;
|
||||
try {
|
||||
parser = new CsvParser();
|
||||
} catch (std::exception &e) {
|
||||
std::cerr << "Error: " << e.what() << std::endl;
|
||||
}
|
||||
} else {
|
||||
std::cout << "Error: could not open file." << std::endl;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user