首页 > 代码库 > c++ assert

c++ assert

#include<iostream>#include <assert.h>using namespace std;int main(){    int a = 0;    assert(a == 0);//当其不满足时触发    getchar();    return 0;}我以为是满足时触发,结果错了

 

c++ assert