I have the following constructor for a class:
Cdata::Cdata(char *input)
{
//Try and open the input file
ifstream ifile(input, ios::in);
if(!ifile.is_open())
{
cout << "The input file didn't open!" << endl;
exit(1);
}
}
When I call the constructor...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.