Advertisement
huutho_96

Untitled

Mar 31st, 2015
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. void main()
  2. {
  3. toado_1 A;
  4. char ID[15];
  5. Tao_khuon();
  6. //gotoXY(3,11); printf("");
  7. while (1)
  8. {
  9. luachon_1(A);
  10. //gotoXY(15,20);
  11. gotoXY(15,20); printf("%d %d", A.x, A.y);
  12. // 0 : Thu 0
  13. if(A.y == 7 && (A.x >= 15 && A.x <= 45)){
  14. key = 0;
  15. break;
  16. }
  17. // 1 : thu 1
  18. if( (A.x <= 60 && A.x >= 1 ) && ((A.y <= 12 && A.y >= 8 ) || (A.y <= 18 && A.y >= 14 )) ) {
  19. key = 1;
  20. break;
  21. }
  22. // ten dang nhap
  23. if( A.x <= 26 && A.x >= 20 && A.y <= 2 && A.y >=1 )
  24. {
  25. gotoXY(15,22); cout << "Nhap ID:";
  26.  
  27. fflush(stdin);
  28. cin.getline(ID, 15);
  29. break;
  30.  
  31. }
  32.  
  33. }
  34. switch(key)
  35. {
  36. case 0: Trang_Chu(); break;
  37. //case 1: Mon_ChungChi(); break;
  38. }
  39. main();
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement