long atoi(char X[])//一數字字符串存於字符數組X中
{long num=
int i=
while (X[i]!=
if(X[
else return ((X[
}//算法atoi結束
[算法討論]如是負數
[
From:http://tw.wingwit.com/Article/program/sjjg/201311/22601.html
long atoi(char X[])//一數字字符串存於字符數組X中
{long num=
int i=
while (X[i]!=
if(X[
else return ((X[
}//算法atoi結束
[算法討論]如是負數
[