若是要一個整數, 就用int ans = atoi(buf); 或long ans=atol(buf); 取得答案; ... skip all leading blank 忽略空白if(p[0] == '-') sign = -1; // 記住是負數啦if(*p ...
確定! 回上一頁