#include<iostream>
using namespace std;
void menu1(){
//statement;
}
void menu2(){
//statement;
}
void exit(){
system("exit");
}
main ()
{
int m;
do {
system("cls");
cout << " /_/_/_/_/_/_/_/_/" << endl;
cout << " MENU PROGRAM" << endl;
cout << " 1. MENU 1" << endl;
cout << " 2. MENU 2" << endl;
cout << " 3. EXIT" << endl << endl;
cout << " PILIHAN [1|2|3] : ";
cin >> m;
switch (m)
{
case 1 : system("cls");
menu1();
system("pause");
break;
case 2 : system("cls");
menu2();
system("pause");
break;
case 3 : system("cls");
exit();
break;
}
} while (m !=3);
return 0;
}
March 24, 2012
C++ SWITCH CASE
10:53:00 PM
diodavid89.blogspot.com