摘要: /* 将带有逗号分隔符的字符串数字转换为对应数字 对于诸如"1a2b3c",返回0,ok被修改为false ok标识是否转换成功 */ long str2num(const char* str,bool& ok) { long result=0; int t=1; ok=true; const ch 阅读全文
posted @ 2021-02-20 22:54 castor_xu 阅读(1137) 评论(0) 推荐(0) 编辑