Example Source Code:c/c++語言建立 #define,先建立 define_.h 檔。

#define INT_TEST 10
#define INT__ 123
#define BYTE unsigned char
#define True 1
#define False 0

char *str_include(void)
{
        char *str="自製標頭檔...\n";
        return str;
}

Example Source Code:將 define_.h 檔 #include 進來。

文章標籤

mitblog 發表在 痞客邦 留言(0) 人氣()