Update and rename input.c to input.cpp