這時函式的輸出就不是輸出到檔案,而是傳進來的stdout檔案指針,即標準輸出。如:. #include <stdio.h>. void func(FILE *p). {. char *str="ddd";. fputs(str,p);. }.
確定! 回上一頁