Update and rename main.c to main.cpp