forked from aaronbloomfield/pdr
-
Notifications
You must be signed in to change notification settings - Fork 228
/
BinaryNode.h.html
30 lines (26 loc) · 1.62 KB
/
BinaryNode.h.html
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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="GNU source-highlight
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite">
<title>BinaryNode.h</title>
</head>
<body style="background-color:white">
<pre><b><span style="color:#000080">#ifndef</span></b> BINARYNODE_H
<b><span style="color:#000080">#define</span></b> BINARYNODE_H
<b><span style="color:#000080">#include</span></b> <span style="color:#FF0000"><string></span>
<b><span style="color:#0000FF">using</span></b> <b><span style="color:#0000FF">namespace</span></b> std<span style="color:#990000">;</span>
<b><span style="color:#0000FF">class</span></b> <span style="color:#008080">BinaryNode</span> <span style="color:#FF0000">{</span>
<b><span style="color:#000000">BinaryNode</span></b><span style="color:#990000">();</span>
<span style="color:#990000">~</span><b><span style="color:#000000">BinaryNode</span></b><span style="color:#990000">();</span>
<span style="color:#008080">string</span> value<span style="color:#990000">;</span>
BinaryNode<span style="color:#990000">*</span> left<span style="color:#990000">;</span>
BinaryNode<span style="color:#990000">*</span> right<span style="color:#990000">;</span>
<b><span style="color:#0000FF">friend</span></b> <b><span style="color:#0000FF">class</span></b> <span style="color:#008080">BinarySearchTree</span><span style="color:#990000">;</span>
<span style="color:#FF0000">}</span><span style="color:#990000">;</span>
<b><span style="color:#000080">#endif</span></b></pre>
</body>
</html>