Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main()
- {
- toado_1 A;
- char ID[15];
- Tao_khuon();
- //gotoXY(3,11); printf("");
- while (1)
- {
- luachon_1(A);
- //gotoXY(15,20);
- gotoXY(15,20); printf("%d %d", A.x, A.y);
- // 0 : Thu 0
- if(A.y == 7 && (A.x >= 15 && A.x <= 45)){
- key = 0;
- break;
- }
- // 1 : thu 1
- if( (A.x <= 60 && A.x >= 1 ) && ((A.y <= 12 && A.y >= 8 ) || (A.y <= 18 && A.y >= 14 )) ) {
- key = 1;
- break;
- }
- // ten dang nhap
- if( A.x <= 26 && A.x >= 20 && A.y <= 2 && A.y >=1 )
- {
- gotoXY(15,22); cout << "Nhap ID:";
- fflush(stdin);
- cin.getline(ID, 15);
- break;
- }
- }
- switch(key)
- {
- case 0: Trang_Chu(); break;
- //case 1: Mon_ChungChi(); break;
- }
- main();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement