调用自定义函数 找不到标识符?该怎么处理
调用自定义函数 找不到标识符?
int main()
{
srand(time(NULL));//置随机数种子
int reset();//如果不加这行就显示找不到标识符。。。
reset();
getch();
}
int reset()
{
return 0;
}
为什么还要定义以下?奇怪啊~~
------解决方案--------------------
int main()
{
srand(time(NULL));//置随机数种子
int reset();//如果不加这行就显示找不到标识符。。。
reset();
getch();
}
int reset()
{
return 0;
}
为什么还要定义以下?奇怪啊~~
------解决方案--------------------
- C/C++ code
上面的是函数申明, 下面是:函数定义,