/* necessary libraries */ #include #include #include #include using namespace std; /* enumerations */ enum input_indices { programname, inputfilename }; // programname = 0, inputfilename = 1 enum return_values { success, invalidinput = -1, cannotopenfile }; // success = 0, cannotopenfile = 1, invalidinput = -1 /* function declarations */ int parse_file(std::vector& v, const char* filename); int usage(const char* program_name); //void* malloc(size_t); // other helper functions that you may have /* other possible things that may be relevant to other source files (not that you have any for this lab) */ /* these are entirely optional and depend on your programming preferences */ #define NUM_ARGS 2 // number of arguments required std::ifstream file_reader; // fstream object to read from files std::vector string_vec; // other global variables you may want std::vector int_vec;