C/C++中#号的作用

来源:互联网 发布:天刀捏脸数据女妩媚 编辑:程序博客网 时间:2024/06/05 14:36
/ /ConsoleApplication1.cpp : 定义控制台应用程序的入口点。
//


#include "stdafx.h"
#include "iostream"


#define  PRINT(i) printf("STU"#i"has %d money", student##i)
int _tmain(int argc, _TCHAR* argv[])
{

int student1 = 100;


PRINT(1);


system("pause");
return 0;
}

0 0
原创粉丝点击