中央論壇 - CENTER BBS

標題: 超蠢的新手問題 關於"表頭檔" 唉~~摸索中.. [打印本頁]

作者: 大胖    時間: 2008-7-28 11:33
標題: 超蠢的新手問題 關於"表頭檔" 唉~~摸索中..
#include<stdio.h>
#include<stdlib.h>
int main()
{
  printf("你好!!!!!\n");
  
  system("pause");
   return 0;
   
}

為何我把#include<stdio.h>和#include<stdlib.h> 兩個表頭檔 去除 它還是可以執行??請問表頭檔的意義與作用??
謝謝!!還在摸索中...
作者: a718    時間: 2009-7-5 16:35
有些編譯器 已經把 #include<stdio.h>和#include<stdlib.h> 比較常用的設為  預設了
就算不引入 標頭檔  還是可以正常執行

標頭檔 : #include<stdio.h>       //基本輸出入
就是你所用的     printf();   函式

看書就有說明了




歡迎光臨 中央論壇 - CENTER BBS (https://www.centerbbs.com/) Powered by Discuz! X3