linux應用編程--簡單經常使用函數

1、atoi函數函數 #include <stdlib.h> int atoi(const char *nptr); 功能:將一個數字字符串轉換成對應的十進制數.net 案例一:unix #include <stdio.h> int main(int argc,char *argv[]) { printf("atoi(%s) = %d.\n",argv[1],atoi(argv[1]));
相關文章
相關標籤/搜索