You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* Converter.hpp :+: :+: :+: */
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
/* Created: 2022/06/30 08:45:12 by narnaud #+# #+# */
|
|
|
|
/* Updated: 2022/08/18 08:45:46 by narnaud ### ########.fr */
|
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <iostream>
|
|
|
|
#include <cstdlib>
|
|
|
|
#include <stdexcept>
|
|
|
|
#include <cctype>
|
|
|
|
#include <limits>
|
|
|
|
#include <cmath>
|
|
|
|
#include <iomanip>
|
|
|
|
|
|
|
|
using std::string;
|
|
|
|
|
|
|
|
class Converter{
|
|
|
|
|
|
|
|
string _input;
|
|
|
|
char _c;
|
|
|
|
int _i;
|
|
|
|
float _f;
|
|
|
|
double _d;
|
|
|
|
public:
|
|
|
|
Converter(string str);
|
|
|
|
Converter(void);
|
|
|
|
Converter(Converter const & src);
|
|
|
|
virtual ~Converter(void);
|
|
|
|
Converter & operator= (Converter const & src);
|
|
|
|
};
|