Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

½Ð°Ý¨º¸Ì¿ù¤F

0 views
Skip to first unread message

在高速公路上倒車

unread,
Nov 11, 1996, 3:00:00 AM11/11/96
to

※ 引述《fireb...@csie.nctu.edu.tw (Say Hello!)》之銘言:
: public:
: BiTree();
: ~BiTree();
: void Insert(element data);
^^^^^^
: }
: 在 implement 時
: struct Node* BiTree::InsertNode(struct Node *n, int data) {
^^^^^^^^^^^^

--
※ Origin: 楓橋驛站(bbs.cs.nthu.edu.tw) ◆ From: 203.75.106.1

Say Hello!

unread,
Nov 11, 1996, 3:00:00 AM11/11/96
to

[ Article crossposted from tw.bbs.comp.language ]
[ Author was Say Hello! ]
[ Posted on 11 Nov 1996 04:08:19 GMT ]

ĶģĪ@­ÓÃþ§OĶpĪU:

class BiTree {
š private:
š struct Node {
š struct Node *LChild,*RChild
š element data;
š };
š
struct Node *root;
struct Node* InsertNode(struct Node *n, int data)

public:
BiTree();
~BiTree();
void Insert(element data);
}

Ķb implement ŪÉ

struct Node* BiTree::InsertNode(struct Node *n, int data) {

...
...
}

Ķý compiler §iķD§Ú

Error BITREE.CPP 26: 'BiTree::InsertNode(BiTree::Node *,int)' is not a member function"

―аݎOĻšŋųĪF? Thanx!

--

+---------------------------------
ļęĪuTotoro ĶbĶđĶV§A°ÝĶn
------------------------------+

0 new messages