Elemines written in C++