c++ assert

时间:2014-08-27 14:33:27   收藏:0   阅读:172
#include<iostream>
#include <assert.h>
using namespace std;
int main()
{
    int a = 0;
    assert(a == 0);//当其不满足时触发
    getchar();
    return 0;
}
我以为是满足时触发,结果错了

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!