我正在編寫一個c程序並遇到了declare()函數。c編程語言 - declare()函數
當我在網上搜索它時,我收到了關於函數聲明和函數定義的結果。
我想知道在c聲明()函數,它做什麼,什麼是它的參數等
下面是一個使用該函數的代碼塊:
char file[50];
strcpy(file,"IS_inst.txt");
declare(file,IS_ins,&IS_inst_count);
strcpy(file,"DS_inst.txt");
declare(file,DS_ins,&DS_inst_count);
strcpy(file,"AD_inst.txt");
declare(file,AD_ins,&AD_inst_count);
strcpy(file,"REG_OPERAND.txt");
declare(file,REG_oprand,®_op_count);
讓我成爲第一個說......哈? – WhozCraig
爲'declare'搜索項目的頭文件,它可能是一個宏(這裏只是猜測)。 –
如果您使用Visual Studio,請在您的'declare'函數上按F12。如果您使用gcc,請使用[-E](http://stackoverflow.com/a/4900890/509868)開關。如果還有其他問題,請嘗試按照這些方式做點事情 – anatolyg