-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdat.cpp
More file actions
32 lines (27 loc) · 1.02 KB
/
dat.cpp
File metadata and controls
32 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*_____________________________________________________________.
|
D A T . C P P |
_(c)_2006_Andrew_Wyld_________________________________________*/
#include "dat.h"
#include <stdlib.h>
#include <stdio.h>
/*_____________________________________________________________.
datEnd */
//seeks last dat item in list
cDat * cDat::end (){
cDat * temp = this;
while(temp->next) temp = temp->next;
return temp;
}
/*_____________________________________________________________.
datExc */
//kills this dat, does minor housekeeping
cDat::~cDat(){
if(0!=next) delete next;
}
/*_____________________________________________________________.
datExt */
//adds an item to the bottom of the pile
cDat::cDat(cDat* n){
(n->end())->next=this;
}