W32 program problem? Native' has exited with code 0

# include <iostream>
# include <string>
# include <iomanip>
using namespace std;

int main ()
{ int accountNumber;
char accountType;
int savingFee;
int checkingFee;
int number;
double Balance;
const double Saving_account_interest=0.04;
const double Checking_account_special=0.03;
const double Checking_account_regular=0.05;
const double Saving_account_fee=10;
const double Checking_account_fee=25;
cout<<fixed<<showpoint;
cout<<setprecision(2);
cout<<"Please input your account number"<<endl;
cin>>accountNumber;

cout<<endl;

cout<<"Enter account type:"
<< "S or s (Saving),"
<< "C or c (Checking),"<<endl;
cin>>accountType;
cout<<endl;

switch (accountType)
{
case 's':
case 'S':
cout <<"enter the number"<<endl;
number=1000;
if(number>=5000)
number=number*Saving_account_interest;
else (number<=5000);
number=number*Saving_account_interest+Saving_account_fee;


break;

case 'c':
case 'C':
number=1000;
if (number>5000)
number=number*Checking_account_special;
else (number<5000);
number=number*Checking_account_regular+Checking_account_fee;

break;
default:
cout<<"Invalid account type."<<endl;

std::cin.get();
std::cin.get();

return 0;
}
What?
http://www.cplusplus.com/forum/articles/1295/
And please use [code][/code] tags
The Answer To The OP's Question: Yes.

I'm not trolling you either, Look at the last line before the close brace on your "main(...)" function. What does it say? Ok, now read the "error" you think you have, what does it say? Your problem, I think, is this atrocious little number:
1
2
std::cin.get();
std::cin.get();

Please read here: http://www.cplusplus.com/forum/beginner/1988/
You don't need to read the whole thing, the first two pages should be enough to solve this "problem".
Besides, this isn't even a Win32 question, despite the title.
@ hanst99: Yeah, but when has that ever mattered to half the people posting on this form? At this point I'm happy to see questions about the right language most of the time.
Topic archived. No new replies allowed.