原创 C語言有關time的函數小結

頭文件 time.h 函數用途 函數名 得到處理器時間 clock 得到時間差 difftime 設置時間 mktime 得到時間 time 得到以ascII碼錶示的時間 asctime 得到

原创 2017.09.21--env環境變量

getenv,putenv,setenv,unsetenv 全部定義在<stdlib.h>中 環境變量格式爲“name=value” char* getenv(const char* name);獲取名爲 name環境變量的值,如果該變量

原创 一些C文件函數fseek(),ftell(),rewind()

1.fseek(),ftell(),rewind()函數;int fseek(FILE *stream, long offset, int fromwhere);fseek(文件指針,偏移量,起始點);位移量指的是位置指針相對於“起始點”

原创 C語言結構體的一些總結

struct結構體的總結 一.聲明與定義 1.聲明: 例如建立一個圖書的結構體,包括書的名字,書的作者以及價格 struct book{ char title[20]; char