while (infile.getline(buf, 1024, '\n'))
{
+ cout << "temp = new aClient;" << endl << flush;
temp = new aClient;
+ cout << "tempname = strtok(buf, " ");" << endl << flush;
tempname = strtok(buf, " ");
+
+ cout << "temp->stats = new Player(tempname);" << endl << flush;
+
temp->stats = new Player(tempname);
+
+ cout << "p = temp->stats;" << endl << flush;
p = temp->stats;
//Kain 1 1 0 500 10 10 0 0 1 1 alive 100 3
p->exp, p->gold, p->bank, p->hp, p->maxhp, p->strength, p->defense, p->armor, p->weapon,
alive, p->forest_fights, p->player_fights, p->password);
+ cout << "Inserting " << temp->stats->name << " at back of list" << endl;
players.insertAtBack(temp);
+ cout << temp->stats->name << " Inserted, now deleting" << endl;
delete temp;
+ cout << "Deleted" << endl;
}
delete buf;
}