#include <iostream>
using namespace std;
int main()
{
#define PI 3.1415
cout << PI << endl;
#define DEBUG
#ifdef DEBUG
cerr << "Debug" << endl;
#endif // DEBUG
#if 0
//注释功能;
cout << "comment" << endl;
#endif // 0
//#和##的使用:#将值变为变为字符串,##连接两个'值'为字符串;
#define MAKESTRING(x) #x
cout << MAKESTRING(helloworld) << endl;
#define CONCATSTRING(x, y) x ## y
cout << CONCATSTRING(1, 2) << endl;
//其他用法;
cout << __LINE__<< endl; //打印当前行;
cout << __FILE__ << endl; //打印当前文件路径;
cout << __DATE__ << endl; //打印当前日期;
cout << __TIME__ << endl; //打印当前时间;
return 0;
}