字符串轉整形

1.輸入一個表示整數的字符串,把該字符串轉換成整數並輸出web public static int atoi(String str) { int neg = 0; int i = 0; if (str.charAt(i) == '-') { i++; neg = 1; } else if (str.charAt(i) == '+') { i++; } in
相關文章
相關標籤/搜索