adding the first of cpp06
This commit is contained in:
parent
12c51ae90e
commit
f4bd73f103
6 changed files with 325 additions and 1 deletions
36
cpp06/ex00/main.cpp
Normal file
36
cpp06/ex00/main.cpp
Normal 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"));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue