Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C++ by hao ( 5 years ago )
#include<iostream>
using namespace std;
#define MAX 50
int menu();

struct donHang
{
	string maDH;
	string tenKH;
	double tongTien;
	bool tinhTrang;
};

int main()
{
	donHang a[MAX];
	int select;
	int n = 0;

	do{
		select = menu();
	}while(select > 0);
	
	system("pause");
	return 0;
}

int menu()
{
	int select;
	do{
		cout << "1.Nhap danh sach don hang" << endl;
		cout << "2.Sap xep don hang theo tong tien tang dan" << endl;
		cout << "3.Tim don hang" << endl;
		cout << "4.Don hang chua xu ly" << endl;
		cout << "5.Xoa don hang theo MaDH" << endl;
		cout << "6.Luu ra file" << endl;
		cout << "7.Doc tu file" << endl;
		cout << "0.Ket thuc" << endl;

		cout <<"------------------------------------------------------------------" << endl <<"Nhap lua chon:";
		cin >> select;
	}while(select < 0 || select > 7);

	return select;
}

 

Revise this Paste

Your Name: Code Language: