//预处理器是一些指令,指示编译器在实际编译之前所需完成的预处理。
//#include<iostream>
//using namespace std;
//
//#define MIN(a,b) (a<b?a:b)
//
//int main()
//{
// int i, j;
// i = 100;
// j = 30;
// cout << "较小的值为: " << MIN(i, j) << endl;
//
// cin.get();
// return 0;
//}
//#include<iostream>
//using namespace std;
//#define DEBUG
//
//#define MIN(a,b) (((a)<(b))?a:b)
//
//int main()
//{
// int i, j;
// i = 100;
// j = 30;
//#ifdef DEBUG
// cerr << "1" << endl;
//#endif
//
//#if 0
// cout << MKSTR(HELLO C++) << endl;
//#endif
//
// cout << "The minimum is " << MIN(i, j) << endl;
//#ifdef DEBUG
// cerr << "2" << endl;
//#endif
//
// cin.get();
// return 0;
//}
//#include <iostream>
//using namespace std;
//
//#define MKSTR( x ) #x
//
//int main()
//{
// cout << MKSTR(HELLO C++) << endl;
// cin.get();
// return 0;
//}
//#include <iostream>
//using namespace std;
//
//#define concat(a, b) a ## b
//int main()
//{
// int xy = 100;
//
// cout << concat(x, y);
// cin.get();
// return 0;
//}
#include <iostream>
using namespace std;
int main()
{
cout << "Value of __LINE__ : " << __LINE__ << endl;
cout << "Value of __FILE__ : " << __FILE__ << endl;
cout << "Value of __DATE__ : " << __DATE__ << endl;
cout << "Value of __TIME__ : " << __TIME__ << endl;
cin.get();
return 0;
}```
C++预处理器
最新推荐文章于 2023-04-16 11:45:03 发布