一些關於C編寫上的問題
|
||||
---|---|---|---|---|
高級會員
|
請問各位先進,最近在學習撰寫c上遇上了一些疑惑想請各位先進幫忙解答,以下是我在閱讀別人寫的程式中不懂的問題
1.請問#ifndef 代表為何?? #ifndef DLL_BUILD typedef unsigned int8 Uint8; #else typedef unsigned char Uint8; 我在使用c編輯器時,編輯器無法認出int8代表的是什麼,而且會出現錯誤,是因為編輯器無法辨別int8嗎?但是這個程式已經有一個組譯過的檔案,所以應該程式本身是沒有錯誤的。 2.#CASE、 #USE fast_io(b)、 #rom CPC_EEP_STR = { 5, 5, 5, 4, //VCO 1 4, 6, 6, 5, //VCO 2 5, 5, 7, 6, //VCO 3 6, 6, 5, 8, //VCO 4 7, 7, 6, 6, //VCO 5 8, 7, 7, 6, //VCO 1 6, 9, 8, 8, //VCO 2 7, 7, 10, 9, //VCO 3 9, 8, 7, 11, //VCO 4 10, 10, 9, 8 //VCO 5 }、 #INT_EXT、#INT_DEFAULT、#INT_TIMER1、#INT_RTCC #separate void set_input_path(Uint8 bank); 以上命令所代表的是什麼意思,在c編輯器中#後面的字串由紅色來表示又代表示什麼意思。 3.WIN32DLL_API void _stdcall stop_process(void); 此行的動作為何??? 請各位先進能幫忙指導,謝謝。
發表於: 2006/9/4 16:00
|
|||
|