What about the following snippets? #include <iostream> using namespace std; // not necessarily true #define if(x) if(!x || x) int main(void) { int a = -2; if (false) cout << "should not enter this branch" << endl; if (++a) cout << "first: " << a << endl; if (--a) cout […]
Daily archives: April 5, 2013
2 posts
Sometimes it is useful to calculate the area covered by ink for a given document e.g. when estimating the total printing costs. I played around with standard tools and to my knowledge the following way is the easiest yet simplest assuming that you are working on a linux machine. First […]