Okay, I was able to fix 11 of the 12 errors I've been getting. I just want to get the code to compile, I'll fix the errors in program when I'm able to compile, and there is an error in line 40 saying expected declaration before '}' token so I'm wondering where in the program do I need to fix this?
Code:
#include <iostream>
#include <stdlib.h>
using namespace std;
void menu (void);
int main()
{
float number,result;
float numero = 5000.00;
void menu (void);
void check_balance(void);
char choice;
menu();
cin >> choice;
while(choice !='d' && choice != 'D' && choice != 'w' && choice != 'W' && choice != 'b' && choice != 'B' && choice != 'Q' && choice != 'q')
{
cout << "It's not a valid entry." << endl;
menu();
cin >> choice;
}
if (choice == 'd' || choice == 'D')
{
cout << "How much will you deposit?" << endl;
cin >> number;
}
result = (number + numero);
}}
if (choice == 'w' || choice == 'W')
{
cout << "How much will you withdraw?" << endl;
cin >> number;
result = (numero - number);
}
}
if (choice == 'b' || choice == 'B')
{
void print_balance (void);
cout << "Your balance is " << balance << " dollars." << endl;
}
{
else if (choice == 'q' || choice == 'Q')
{
return 0;
}
{
cout << "Thank you for your transaction! Your current balance is now " << result << " dollars." << endl;
cout << "What would you like to do now?" << endl;
return 0;
}
void menu(void);
{
cout << "Enter D or d for deposit." << endl;
cout << "Enter W or w for withdrawal." << endl;
cout << "Enter B or b for balance." << endl;
cout << "Enter Q or q to quit." << endl;
}
void print_balance(float);
{
if (balance == balance)
{
return 0;
}
else
{
return 1;
}