Files
medicallib/examples/main.cpp
T
google-labs-jules[bot] 518277356a Rename the project from "MyLibrary" to "MedicalLib" to better reflect its intended purpose as a library for medical simulations.
- Rename all files, directories, and internal project names to "MedicalLib".
- Replace the generic `add` function with a more domain-specific `calculateBMI` function as an initial example of the library's capabilities.
- Update the `AGENTS.md` file to describe the new purpose and scope of the MedicalLib library.
2025-08-18 09:02:01 +00:00

12 lines
346 B
C++

#include <iostream>
#include "MedicalLib/MedicalLib.h"
int main() {
double weight = 70.0; // kg
double height = 1.75; // meters
double bmi = calculateBMI(weight, height);
std::cout << "Weight: " << weight << " kg, Height: " << height << " m" << std::endl;
std::cout << "Calculated BMI: " << bmi << std::endl;
return 0;
}