Replace main.c and test.c files with c++ analogs.