- #include <iostream>
- using namespace std;
-
- #define PR(x) cout << #x << " ---> " << x << endl;
- int main()
- {
- int i = 10;
- PR(i);
- float f = 10.3f;
- PR(f);
- return 0;
- }
结果为:
i ---> 10
f ---> 10.3
但是, 下面程序是有错误的:
- #include <iostream>
- using namespace std;
-
- #define PR(x) cout << #x << " ---> " << x << endl;
- int main()
- {
- int i = 10;
- cout << #i << " ---> " << i << endl;
- return 0;
- }








![战神引擎传奇手游【1.76盛战传奇免授权版[摸摸登陆器]】最新整理Win系复古服务端+安卓苹果双端+GM授权物品后台+详细搭建教程](https://cdn.jxasp.com:9143/image/20251106/1B4E8594B3BEB90E8601D63A8A39CB0B.jpg)










