I need to put some elements inside a list of structures, how can I pass the variables inside the others functions?
Obviously there are many errors.
This is the code:
struct person { char* nome[40]; char* phone[15]; person *succ; };
class lista {
person *head;
public :
lista () {head=NULL;}; //inizializza la lista a NULL (valore inesistente 0 '/0')
};
void MyProject::startDocument() { lista l; computer buf; }
void MyProject::startElement(const XMLCh* const name , AttributeList& attributes) { char* nome = (XTOC(name)); cout << nome; if(XMLString::equals(XTOC(attributes.getName(0)),"Name")) { const XMLCh* value=attributes.getValue("Phone"); if(value) { char* phone=(XTOC(value)); cout << ip; } }
person *p= new person;
XMLString::copyString (char *const c->nome, const char *const nome)
XMLString::copyString (char *const c->phone, const char *const Phone)
p->next=head;
head=c;
....
Thanks for your help Daniele
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]