2013年1月19日

有关#define中的#和##

摘要: 在#define中,标准只定义了#和##两种操作。#用来把参数转换成字符串,##则用来连接前后两个参数,把它们变成一个字符串。 1 #include <iostream> 2 #include <fstream> 3 using namespace std; 4 #define D(A) T<< #A << endl; 5 inline void assure(std::ofstream &in, const char* filename="") 6 { 7 if(!in) 8 { 9 fprintf(stderr,& 阅读全文

posted @ 2013-01-19 11:34 初日 阅读(327) 评论(0) 推荐(0) 编辑

导航