converted all *.c files to *.cpp