怎样用c语言编写将字符串转换为整数的函数

日期:2012-07-29 17:48:59 人气:1

怎样用c语言编写将字符串转换为整数的函数

int tem; for(i=0;i<字符串有效长度;i++) {tem=s[i]-'0'; 然后把tem保存到什么地方 }
    A+
热门评论