C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 9th, 2005, 02:03 PM
shane200_ shane200_ is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 2 shane200_ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 28 sec
Reputation Power: 0
Post Code help

Can anyone help me with this c++ program, I can't run it.


#include<iostream.h>

#include<stdlib.h>

#include<string.h>

//the list of function prototypes

void Deposit();

void Withdraw();

void Query();

void Show();

void Exit();

char Menu();

//++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++

char main()

{

char[] choice = Menu();

while(choice !="E")

{

switch(choice)

{

case "D" : Deposit();

break;

case "W" : Withdraw();

break;

case "Q" : Query ();

break;

case "S" : Show();

break;

case "E" : Exit ();

break;

default:cout<<"INVALID ACCOUNT NUMBER ENTERED, PLEASE TRY AGAIN!!!..";

}

choice = Menu();
// This call the menu

} // end of while loop

return 0;

}
//This is the end of the main program

//++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++

char Menu()

{

char choice;

system ("cls");
//this will clear the screen

do{

cout<<"\tWelcome to Superbank International \n";

cout<<"====================================";

cout<<"\n D Deposit \n ";

cout<<"\n W Withdraw \n";

cout<<"\n Q Query \n";

cout<<"\n S Show all \n";

cout<<"\n E Exit \n";

cout<<"\n\n Option: ";

cin>>choice;

}

while (choice != "E");

return choice;

}

//+++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++




Reply With Quote
  #2  
Old April 9th, 2005, 05:57 PM
B-Con's Avatar
B-Con B-Con is offline
:bcon: moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Location: int main()
Posts: 351 B-Con User rank is Private First Class (20 - 50 Reputation Level)B-Con User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 23 h 1 m 43 sec
Reputation Power: 4
please use the [ code] tags when posting code with indentations....

what *exactily* is the problem? Will it compile? Is it terminating awkwardly? or what....

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Code help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway