Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/heyfoz/cpp-inventory-vector-sort-search

The Inventory Vector Sort/Search Program (C++) reads an InventoryParts.txt file made of a list of part records containing part names, categories, quantities, and unit costs. The program prompts the user to search for parts, and if a part is not found, the user can add a new part record. An updated txt file is written on program close.
https://github.com/heyfoz/cpp-inventory-vector-sort-search

cpp data-structures inventory

Last synced: about 1 month ago
JSON representation

The Inventory Vector Sort/Search Program (C++) reads an InventoryParts.txt file made of a list of part records containing part names, categories, quantities, and unit costs. The program prompts the user to search for parts, and if a part is not found, the user can add a new part record. An updated txt file is written on program close.

Awesome Lists containing this project

README

        

# cpp_inventory_vector_sort_search
The Inventory Vector Sort/Search Program (C++) reads an InventoryParts.txt file made of a list of part records containing part names, categories, quantities, and unit costs. The program prompts the user to search for parts, and if a part is not found, the user can add a new part record. An updated txt file is written on program close.

Notable software engineering features:


  • Insertion sort algorithm of an inventory vector of part objects

  • Binary search algorithm to find index of part record by part number

  • Reference variables used as parameters

  • Custom Part data structure

  • Data validation and formatting

  • Input/output file streams and string stream objects

Link to .cpp file: Inventory Vector Sort/Search C++ Program

Copyright (c) 2022 ffm5113