budget/src/utilities.h

25 lines
431 B
C
Raw Normal View History

//
// Created by quentin on 1/21/23.
//
#ifndef BUDGET_UTILITIES_H
#define BUDGET_UTILITIES_H
#include <string>
class Utilities {
public:
/**
* @brief Asks the user to confirm an action with a yes or no question
*
* @param question The question to ask the user
*
* @return True if the user confirms the action, false otherwise
*/
static bool confirm(const std::string &question);
};
#endif //BUDGET_UTILITIES_H