#include<iostream>
#include<cassert>
using namespace std;
int main()
{
int a = 18;
int b = 18;
assert( a!= b );
cout<< "通過 assert 的檢查" <<endl;
cout<< a / (a-b) <<endl;
}
#include<iostream>
//關閉Assert 要在 include 前加才有用
#define NDEBUG
#include<cassert>
using namespace std;
int main()
{
int a = 18;
int b = 18;
assert( a!= b );
cout<< "通過 assert 的檢查" <<endl;
cout<< a / (a-b) <<endl;
}
| 歡迎光臨 竹園論壇 (http://forum.tfcis.org/) | Powered by Discuz! X3.2 |