[英]How to fix - Unused declaration of function 'product'
我正在尝试运行从源代码复制的程序。 它一直显示警告
"Unused declaration of function 'product'" for this line: int product(int x, int y);
我不知道如何解决它。
必须有该函数的原型声明,未使用,这意味着未定义函数本身。
只需找到行int product(int x, int y);
并评论它。 通过添加 2 //
//int product(int x, int y);
警告会消失。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.