关于判断字符串是否是数字:
#include<sstream>
bool isNum(string s){
stringstream ss(s);
int d;
if(ss<<d) return true;
return false;
}
/**
#include<ctype.h>
bool is digit(char ch);
**/
关于判断字符串是否是数字:
#include<sstream>
bool isNum(string s){
stringstream ss(s);
int d;
if(ss<<d) return true;
return false;
}
/**
#include<ctype.h>
bool is digit(char ch);
**/