原创 把 字符串轉換爲整數的算法

public class StringToInteger {//定義一個全局變量,用來表示此輸出是否異常private int flag=0;//flag=0是正常,falg=1是異常public int