P
Peng Yu
I'm going to do something like this
#define INSPECT( FILENAME,) \
ofstream FILENAME("FILENAME.out");\
For example, I want "INSPECT(abc)" open a file with name "abc.out",
the file object's name is "abc".
I tried the following code, but it still doesn't work.
#define INSPECT( FILENAME,) \
ofstream FILENAME("##FILENAME.out##");\
#define INSPECT( FILENAME,) \
ofstream FILENAME("FILENAME.out");\
For example, I want "INSPECT(abc)" open a file with name "abc.out",
the file object's name is "abc".
I tried the following code, but it still doesn't work.
#define INSPECT( FILENAME,) \
ofstream FILENAME("##FILENAME.out##");\