added a menu and fixed FormingTool.h so it builds 100%
This commit is contained in:
parent
f78f69f579
commit
5ba3bc24d0
BIN
.vscode/browse.vc.db
vendored
BIN
.vscode/browse.vc.db
vendored
Binary file not shown.
BIN
.vscode/browse.vc.db-shm
vendored
BIN
.vscode/browse.vc.db-shm
vendored
Binary file not shown.
@ -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);
|
||||
|
||||
|
35
src/main.cpp
35
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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user