diff --git a/.vscode/browse.vc.db b/.vscode/browse.vc.db index c3931d9..b159240 100644 Binary files a/.vscode/browse.vc.db and b/.vscode/browse.vc.db differ diff --git a/.vscode/browse.vc.db-shm b/.vscode/browse.vc.db-shm index 4cba9c0..cf6389b 100644 Binary files a/.vscode/browse.vc.db-shm and b/.vscode/browse.vc.db-shm differ diff --git a/include/FormingTool.h b/include/FormingTool.h index f62dc48..3f48467 100644 --- a/include/FormingTool.h +++ b/include/FormingTool.h @@ -4,6 +4,7 @@ #include #include #include +#include class FormingTool { public: @@ -16,6 +17,7 @@ public: void setToolSize(double toolSize); void setMaterialType(const std::string &materialType); void setToolRadius(double radius); + void useTool(); void serialize(std::ofstream &ofs) const; void deserialize(std::ifstream &ifs); diff --git a/src/main.cpp b/src/main.cpp index 964a032..3a8c5e3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -51,6 +51,37 @@ #include "Setback.h" #include "Tonnage.h" -int main() -{ +int main() { + std::cout << "Welcome to BendCalc - Metal Forming and Bending Operations Calculator\n"; + std::cout << "Select an operation:\n"; + std::cout << "1. Calculate Bend Deduction\n"; + std::cout << "2. Load Data\n"; + std::cout << "3. Save Data\n"; + std::cout << "4. Exit\n"; + std::cout << "Enter your choice: "; + + int choice; + std::cin >> choice; + + switch (choice) { + case 1: + // Call function to calculate bend deduction + break; + case 2: + // Call function to load data + break; + case 3: + // Call function to save data + break; + case 4: + std::cout << "Exiting...\n"; + return 0; + default: + std::cout << "Invalid choice. Please try again.\n"; + } + + // Loop back to menu or exit based on user input + // Implement functionality for each case + + return 0; } \ No newline at end of file