尽量避免在注释中使用缩写

尽量避免在注释中使用缩写,特别是不常用缩写。

 1 #include <iostream>
 2 #define  PRINT(k)   cout<<(k)<<endl;
 3 #define  MAX(a,b)   ((a)>(b) ? (a):(b))
 4 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
 5 using namespace std;
 6 int main(int argc, char** argv) {
 7     int i=3,j=2;
 8 
 9     //MAX(a,b)宏替换的使用 
10     cout<<"MAX(10,12)="<<MAX(10,12)<<endl;
11     cout<<"MAX(i,j)="<<MAX(i,j)<<endl;
12     cout<<"MAX(2*i,j+3)="<<MAX(2*i,j+3)<<endl;
13 
14     //PRINT(k)宏替换的使用
15     PRINT(5);
16     PRINT(MAX(7,i*j));   
17 
18     return 0;
19 }
原文地址:https://www.cnblogs.com/borter/p/9413367.html