Original Post
How should I write the ADD_WITH_SPACE macro to get the output "foo bar"? Thanks for your help!
#include <iostream>
#include <string>
// HOW SHOULD THIS MACRO BE WRITTEN TO GIVE THE OUTPUT "foo bar"???
#define ADD_WITH_SPACE(a, b) #a## #b
int main()
{
std::cout << ADD_WITH_SPACE(foo, bar) << std::endl;
std::cin.get();
return 0;
}