void cargarlista(char *n) { ifstream lec(n); char x[5]; while(!lec.eof()) { cin>>x; if(strcmp(x,",")==0) this->agregar(atoi(x)); } lec.close(); }