---
title: "小小的宏,妙!"
author: "butnet"
date: "2008-09-10T04:08:08Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2008-09-10T04:08:08Z"
id: 261635
url: "https://butnet.iteye.com/blog/261635"
---

#include &lt;iostream&gt;  
#include &lt;conio.h&gt;  
using namespace std;  
#define DEBUG  
#ifdef DEBUG  
     #define TEST(X) cout&lt;&lt;#X"="&lt;&lt;X&lt;&lt;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;  
}