Patulong po kung pano gumawa ng ATM c++ using switch and loop. Groupings po kasi to kaso ala pong gustong maki group sakin. kaya dito nalang po ako nag ask ng help. sana po matulungan nyo po ako. Willing po ako matuto kahit medyo slow learner po ako
int option; // this will hold the input value for the options
while (count == 0) {
// enter pin number here
if (pinNumber == pass) {
while (true) {
// insert ATM menu here
// here if the user enter 0 this will exit the program.
if (option == 0) {
return 0;
// if the user enter 1 this will do some ATM functions | see example below
} else if (option == 1) {
} else if (option == 2) {
// more ATM functions
}
// and so on ...
}
}
}
Your browser is not able to display this video.
Your program will only exit if the user chooses the option for exit.
sir last na tanong na po. hindi ko po talaga maayos yung error dun sa wí†hdráw and deposit. kapag naglagay ko ng Letters nag error yung program hindi na makaalis sa wí†hdráw or deposit. pano ko kaya to maayos? eto nalang po problem dun sa code