double f = atof(buffer);. 2. atoi:將字串轉為整數. int atoi ( const char * str );. ex: char buffer[] = "23"; int i = atoi(buffer);.
確定! 回上一頁