Advertisement
Guest User

esercizio ins_end più giusto

a guest
Dec 12th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. nodo* ins_end (nodo* L, char c) {
  2.     if (!N->next) {
  3.         nodo* p = new nodo (c, 0);
  4.         N->next = p;
  5.         return N; //non sono sicura di dover ritornare N però
  6.     }
  7.     else {
  8.         N->next = ins_end (N->next, c);
  9.         return N;
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement