Basic codes in C, C++