added a menu and fixed FormingTool.h so it builds 100%

This commit is contained in:
Gregory Kenneth Bowne 2024-02-14 23:16:24 -08:00
parent f78f69f579
commit 5ba3bc24d0
4 changed files with 35 additions and 2 deletions

BIN
.vscode/browse.vc.db vendored

Binary file not shown.

Binary file not shown.

View File

@ -4,6 +4,7 @@
#include <string>
#include <ostream>
#include <iostream>
#include <fstream>
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);

View File

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