Custom C++ libraries to showcase dynamic memory allocation using circular linked lists.
Import CSV Files into Objects
This main looks for csv files in the runtime arguments. For csv files found in argument list, it imports the csv as a matrix object into a circular linked list of objects. Correlations are made between the csv file data property values and all other csv files. Then this main displays objects identified during object import based on the data in the csv files found in arguments during runtime.
e.g.,
make
./main *.csv./main ../path/to/csv/*.csv./main ./path/to/csv/file.csvmake csvmake run#include "main.h"
int main(int argc, char **argv, char **envp)
{
Objects CSVs; // Init Main Object of Objects to hold information from CSVs
List list; // Init list to hold argument values
for(auto idx = 0; idx < argc; idx++) // For the Argument Count
{ // Put the parameterized arguments into an organized list
Element buffer(argv[idx]); // Using the Element Constructor to copy argv into Element
list.insert(buffer); // And the Sorted Insertion Mutator to insert the Element into the list
}
CSVs.importCSVs(list); // Import CSVs into objects
CSVs.print(); // Display the objects
return 0;
}

