Files
42_INT_09_piscine_cpp/d06/ex00/srcs/checkDouble.cpp
2022-03-07 15:16:05 +01:00

30 lines
453 B
C++

#include <iostream>
#include <string>
#include <cctype> // isdigit()
#include "color.h"
//Char toChar(str) {
//
//}
bool isDouble(std::string str) {
if (str.length() == 3)
return true;
return false;
}
bool checkDouble(std::string str) {
// double d;
std::cout << "double\n";
if (!isDouble(str))
return false;
// d = toDouble(str);
// std::cout << "double"RESET" equal to : "B_CYAN << d << RESET << "\n";
// fromDouble(d);
return true;
}