摘要:
以前写过类似的函数,最近又用到了,简单总结一下,以备后用。1 StrToInt 此函数将编辑框中输入的字符串,如“1001”,转化为十进制数字,如1001。int StrToInt(const char* str){int num = 0;BOOL RIGHT = FALSE;if(str!=NULL){ const char* digit = str; while((* digit != '/n')) { if(*digit >= '0' && *digit <= '9') { num = num * 10 +(*d 阅读全文
posted @ 2012-06-28 20:11
DoubleLi
阅读(947)
评论(0)
推荐(0)