cin >> *cppfile;
cin >> *outputfile;
To fix this, change the type of these variables to "std::string" objects and use "std::cin" to directly assign values to them.
if (opt == "1" || opt == "a" || opt == "A")
to
if (opt == '1' || opt == 'a' || opt == 'A')
#include "string"