Skip to content

CyberCondor/cPlusPlus_Driver

Repository files navigation

cPlusPlus_Driver

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.csv
make csv
make run

Main

#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;
}


RuntimeScreenshot

RuntimeScreenshot



Dependencies

Dependencies


👁‍🗨 Special Thanks To:

Thank you for teaching C++ with a focus on memory management!
- Doug Jones - Computer Science 2
- The Cherno - youtube[.]com/@TheCherno
- Low Level Learning - youtube[.]com/@LowLevelLearning

About

Custom C++ libraries to showcase dynamic memory allocation using circular linked lists.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors