Convert intro.c to C++