Devi però le devi creare le liste.
codice:public : Lista* nodoA, *nodoB, *nodoC, *nodoD; Union() { nodoA = new Lista; nodoA->name = 'A'; nodoA->nxt = NULL; nodoB = new Lista; nodoB->name = 'B'; nodoB->nxt = NULL; // etc...
Devi però le devi creare le liste.
codice:public : Lista* nodoA, *nodoB, *nodoC, *nodoD; Union() { nodoA = new Lista; nodoA->name = 'A'; nodoA->nxt = NULL; nodoB = new Lista; nodoB->name = 'B'; nodoB->nxt = NULL; // etc...
This code and information is provided "as is" without warranty of any kind, either expressed
or implied, including but not limited to the implied warranties of merchantability and/or
fitness for a particular purpose.