You need to include:
#include <string>
#include <iostream>
parsefile
should return something or it should be void
.
This statement:
string strFileName = string(FileName);
should be:
std::string strFileName = FileName;
this statement:
Std::cout << “error while opening file\n”;
should be (notice the S in std
and the quotes):
std::cout << "error while opening file\n";
There is no definition or declaration of flag = cdfparse();
, check it.