30 lines
453 B
C++
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;
|
|
}
|