#include <iostream>
#include <limits>
#include <ctime>
#include <iomanip>
#include <math.h>
#include <locale.h>
void showBalance(double balance){
std::cout << "Your balance: " << std::setprecision(2) << std::fixed << balance << '\n';
}
double deposit(){
double depositAmount = 0;
std::cout << "Enter Deposit Amount: ";
std::cin >> depositAmount;
if (!depositAmount > 0)
{
std::cout << "Enter A Valid Amount.\n";
}
return depositAmount;
}
double withdraw(double balance){
double withdrawAmount = 0;
std::cout << "Enter The Amount You Would Like To Withdraw: ";
std::cin >> withdrawAmount;
if (!withdrawAmount > 0)
{
std::cout << "Enter A Valid Amount.\n";
}
return withdrawAmount;
}
int main(){
setlocale(LC_ALL, ""); when you try to use comma's instead of a . for decimals it throws same error no clue how to fix this been looking around