adding the first of cpp06

This commit is contained in:
Raphael 2025-03-22 15:53:20 +01:00
parent 12c51ae90e
commit f4bd73f103
6 changed files with 325 additions and 1 deletions

36
cpp06/ex00/main.cpp Normal file
View file

@ -0,0 +1,36 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/20 15:49:02 by rparodi #+# #+# */
/* Updated: 2025/03/21 18:26:21 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "ScalarConverter.hpp"
int main(void) {
ScalarConverter test;
test.convert(new std::string("a"));
std::cout << std::endl;
test.convert(new std::string("0"));
std::cout << std::endl;
test.convert(new std::string("4294967300"));
std::cout << std::endl;
test.convert(new std::string("42.42"));
std::cout << std::endl;
test.convert(new std::string("-inff"));
std::cout << std::endl;
test.convert(new std::string("+inff"));
std::cout << std::endl;
test.convert(new std::string("nanf"));
std::cout << std::endl;
test.convert(new std::string("-inf"));
std::cout << std::endl;
test.convert(new std::string("+inf"));
std::cout << std::endl;
test.convert(new std::string("nan"));
}