[go: up one dir, main page]

Menu

[9db7f1]: / message_node.hh  Maximize  Restore  History

Download this file

24 lines (19 with data), 446 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef MESSAGE_NODE_HH
#define MESSAGE_NODE_HH
//#include <string>
//#include "types.hh" // included by functions.hh
#include "functions.hh"
class message_node {
static message_node* hash_table[];
public:
message_node* next;
char* text;
static bool find(char* msg);
static void add_to_hash(char* msg);
message_node(char* msg) {
text = strdup(msg);
next = NULL;
}
~message_node() { delete[] text; }
};
#endif