0

With a C++ preprocessor directive I would need to achieve something like this:

std :: cout << wrapinquotes(hithere) << std :: endl;

and get hithere printed out. I tried naively doing something like

#define wrapinquotes(x) "x"

but as you can easily imagine, I got an x printed out. Is there any way to achieve this?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Matteo Monti
  • 8,362
  • 19
  • 68
  • 114

0 Answers0