1 Star 0 Fork 33

nh41435/CM-Server

forked from 留天下/CM-Server 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tool.cpp 364 Bytes
一键复制 编辑 原始数据 按行查看 历史
留天下 提交于 2019-02-22 13:22 . net redo done!
#include"tool.h"
std::string numberToString(float number)
{
std::string res;
std::stringstream ss;
ss << number;
ss >> res;
return res;
}
bool isNum(const std::string & number)
{
std::stringstream sin(number);
double d;
char c;
if (!(sin >> d))
return false;
if (sin >> c)
return false;
return true;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/nh41435/CM-Server.git
git@gitee.com:nh41435/CM-Server.git
nh41435
CM-Server
CM-Server
master

搜索帮助