1D Heat Equation Solver 1.0
Computational Methods Assignment 2025
Loading...
Searching...
No Matches
user_input.cpp File Reference
#include "user_input.h"
Include dependency graph for user_input.cpp:

Go to the source code of this file.

Functions

int askForInteger (const std::string &prompt, const std::function< bool(int)> &isValid, const std::string &errorMessage)
 Implementation for integer input.
double askForDouble (const std::string &prompt, const std::function< bool(double)> &isValid, const std::string &errorMessage)
 Implementation for floating-point input.

Function Documentation

◆ askForDouble()

double askForDouble ( const std::string & prompt,
const std::function< bool(double)> & isValid,
const std::string & errorMessage )

Implementation for floating-point input.

Ask for a floating-point value from the user.

Definition at line 17 of file user_input.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ askForInteger()

int askForInteger ( const std::string & prompt,
const std::function< bool(int)> & isValid,
const std::string & errorMessage )

Implementation for integer input.

Ask for an integer value from the user.

Definition at line 6 of file user_input.cpp.

Here is the call graph for this function: