#include <iostream>
#include <assert.h>
// #define _NDEBUG
#ifndef _NDEBUG
#define _DEBUG
#endif // _DEBUG
using namespace std;
bool TestValue(int a)
{
if ( a > 100 )
return false;
else
return true;
}
int main()
{
int x = 10;
#ifdef _DEBUG
assert( TestValue(x) );
#endif
cout << "Hello world!" << endl;
x = 20;
assert( TestValue(x) );
cout << "New Hello World!" << endl;
x = 120;
#ifdef _DEBUG
assert( TestValue(x) );
#endif
cout << "The last line output!!!" << endl;
return 0;
}
// 整体上很简单,思路也比较清楚了,不必做注释,复制下来跑一遍就啥都明白了。