blob: 25d10f7b69441b514d413584e25d6c27122a6887 (
plain)
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
33
34
|
struct stringListPiece
{
char* stringText;
stringListPiece* nextString;
};
class stringList
{
private:
//List size
int m_size;
//Start is the first entry, end is the last entry
stringListPiece* m_listStart;
stringListPiece* m_listEnd;
public:
//constructor
stringList();
//accessors
int getSize();
stringListPiece* getListStart();
stringListPiece* getListEnd();
//mutator
int add(stringListPiece* newString); //add String to list
bool remove(int index); //remove string at index
//print representation
void printStringList();
};
|