#include "stdafx.h"
#include <iostream>
#include <string>
void Run(bool bPrint);
int main(void) {
using namespace std;
cout << "POS Project 1.0" << endl;
Run(true);
return 0;
}
void Run(bool bPrint)
{
using namespace std;
int menu = 0;
if (bPrint) {
cout << "----------------------------" << endl;
cout << "| 0. 프로그램 메뉴 다시 출력." << endl;
cout << "| 1. 현재 주문 조회." << endl;
cout << "| 2. 새 주문 추가." << endl;
cout << "| 3. 주문 수정." << endl;
cout << "| 4. 주문 정산." << endl;
cout << "| 5. 현재 총 매출액." << endl;
cout << "| 6. 프로그램 종료." << endl;
cout << "----------------------------" << endl;
}
cout << "메뉴 번호 ";
cin >> menu;
if (menu < 0 || menu > 6)
{
cout << "잘못 입력하셨습니다." << endl;
}
else {
switch (menu) {
case 0 :
return Run(true);
case 1:
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
return;
}
}
return Run(false);
}