我正在编写一个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