ITeye博客

小小的宏,妙!

butnet · 2008-09-10 04:08 · c++源代码 · Markdown

#include <iostream>
#include <conio.h>
using namespace std;
#define DEBUG
#ifdef DEBUG
     #define TEST(X) cout<<#X"="<<X<<endl
#else
     #define TEST(X)
#endif

int main()
{
    int a=10,b=21;
    char cs[]="fdasfdasf";
    TEST(a);
    TEST(b);
    TEST(cs);
    getch();
    return 0;
}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。