我得到了关于声明的错误断言在C程序
我的程序使用断言与参数0,默认情况下。
switch(choice)
{
case OP_1:
func_1();
break;
case OP_2:
func_2();
break;
default:
assert(0);
}
assert如何工作? 另外它给了我错误:未定义的引用声明。 我必须指定,程序使用
#include <assert.h>
我要去哪里错了?
您的意思是'的#include'? –
devnull
是的,你是对的!它包含在程序中的 – San