Basic code in C/C++