Advertisement
Guest User

Untitled

a guest
Jan 12th, 2021
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4. #include <conio.h>
  5. #include "Lista.h"
  6.  
  7.  
  8.  
  9. int main(int argc, char** argv) {
  10. TUzytkownik* gPoczatekListy = NULL;
  11. TUzytkownik* lNowyElment= NULL;
  12. TUzytkownik* lElementListy= NULL;
  13. TUzytkownik* lOstatniElementListy = NULL;
  14. TUzytkownik* lBiezacyElementListy = NULL;
  15.  
  16.  
  17.  
  18.  
  19. int lOpcja;
  20. int i=0;
  21.  
  22. while(1){
  23.  
  24. funkcja2(lBiezacyElementListy);
  25. lOpcja = getch();
  26.  
  27. switch(lOpcja){
  28.  
  29. case 87:
  30. case 119:{
  31. return 0;
  32. }
  33. case 68:
  34. case 100:
  35. dodawanieUzytkownika(lNowyElment, lBiezacyElementListy, lElementListy, gPoczatekListy);
  36. break;
  37.  
  38. case 85:
  39. case 117:{
  40. funkcja3(lBiezacyElementListy, lElementListy, gPoczatekListy);
  41. break;
  42. }
  43. case 75:{ //Strzałka w lewo
  44. strzalkaWLewo(lElementListy, lBiezacyElementListy);
  45. break;
  46. }
  47. case 77:{ //Strzałka w prawo
  48. strzalkaWPrawo(lElementListy, lBiezacyElementListy);
  49.  
  50. break;
  51. }
  52. }
  53. }
  54.  
  55. }
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement