Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include <conio.h>
- #include "Lista.h"
- int main(int argc, char** argv) {
- TUzytkownik* gPoczatekListy = NULL;
- TUzytkownik* lNowyElment= NULL;
- TUzytkownik* lElementListy= NULL;
- TUzytkownik* lOstatniElementListy = NULL;
- TUzytkownik* lBiezacyElementListy = NULL;
- int lOpcja;
- int i=0;
- while(1){
- funkcja2(lBiezacyElementListy);
- lOpcja = getch();
- switch(lOpcja){
- case 87:
- case 119:{
- return 0;
- }
- case 68:
- case 100:
- dodawanieUzytkownika(lNowyElment, lBiezacyElementListy, lElementListy, gPoczatekListy);
- break;
- case 85:
- case 117:{
- funkcja3(lBiezacyElementListy, lElementListy, gPoczatekListy);
- break;
- }
- case 75:{ //Strzałka w lewo
- strzalkaWLewo(lElementListy, lBiezacyElementListy);
- break;
- }
- case 77:{ //Strzałka w prawo
- strzalkaWPrawo(lElementListy, lBiezacyElementListy);
- break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement