Listing 1
#include <iostream> #include <fstream>//required for file operations using namespace std; class File01{ public: static void classMain(){ //code deleted for brevity }//End classMain function //----------------------------------------------// //An instance function of the File01 class void doSomething(){ ifstream dataFile;//Input file stream ofstream outFile;//Output file stream dataFile.open("File01in.txt");//Input file name outFile.open("File01out.txt");//Output file name const int size = 5; long values[size]; Listing 1 |