// namespaces #include <iostream> using namespace std;
namespace foo { int value() { return 5; } }
namespace bar { const double pi = 3.1416; double value() { return 2*pi; } }
int main () { cout << foo::value() << '\n'; cout << bar::value() << '\n'; cout << bar::pi << '\n'; return 0; }
#ifdef ( DEBUG ) #define M_DebugLog( msg ) std::cout << __FILE__ << ":" << __LINE__ << ": " << msg #else #define M_DebugLog( msg ) #endif
http://faculty.cs.niu.edu/~mcmahon/CS241/Notes/compile.html
By Olli Savolainen