changing files to cpp, feeling very confused