Advanced Codes in C++