Changes between Version 1 and Version 2 of examples_from_lect


Ignore:
Timestamp:
01/21/16 22:12:56 (8 years ago)
Author:
Evgeny Linsky
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • examples_from_lect

    v1 v2  
    1616         }
    1717       
    18         void virtual add(int value) {
     18        virtual void add(int value) {
    1919                BadList *current = this;
    2020                while ( current->next != NULL ) {
     
    4444        }               
    4545       
    46         void virtual add(int value) {
     46        virtual void add(int value) {
    4747                BadDoubleList *current = this;
    4848                while ( current->next != NULL ) {
     
    5151               current->next = new BadDoubleList(value);
    5252               ((BadDoubleList*) current->next)->prev = current;
    53         }
     53        }       
     54       
    5455};     
    5556