atoi
函數原型:int atoi(const char * str);
參數: 要轉換的字串。
所需標頭檔: stdlib.h
功能: 將字串轉換為整數。
返回值:返回轉換後的結果值,如果輸入不能轉換成對應類型的值,返回值為0。
18 -18 18 0