Something
public cpp v1 · immutablecout << temp->name << endl;temp = temp->link;while(temp->link != NULL){ cout << " | | " << temp->name << endl; temp = temp->link;}cout << temp->name << endl;temp = temp->link;while(temp->link != NULL){ cout << " | | " << temp->name << endl; temp = temp->link;}