Okay so heres my function I want it to open a file but if the file doesnt open i want it to do the else statement then start the function over again.
What would be the best method for doing so?
Im also open to critisism of currently existing code.
cout << "Enter in the name of the input file (ctrl-c to exit):";
cin >> fileName;
cout << fileName << endl;
ifstream myfile (fileName.c_str);
cout << "Input file " << fileName << " was successfully opened!" << endl << endl;
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…