tricks in C++