Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int insereix(Tcarta carta,int pos,Tjoc *joc){
- int i;
- if (pos < MAXCARTES && pos >= 0 && pos < joc->ncartes){
- for(i = joc->ncartes ; i >= pos; i--){
- joc->cartes[i] = joc->cartes[i-1];
- }
- joc->ncartes ++;
- joc->cartes[pos] = carta;
- return 1;
- }
- else return 0;
- }
Add Comment
Please, Sign In to add comment