D - pointer to class in class
- Fabian (10/10) Apr 20 2004 class Node
- J Anderson (8/18) Apr 20 2004 You need an entry point (main)
- J C Calvarese (18/30) Apr 20 2004 This might work a little better:
class Node { Node myPointer; void test() { myPointer = new Node; } } this doesnt work, it says its unidentified. any ideas?
Apr 20 2004
Fabian wrote:class Node { Node myPointer; void test() { myPointer = new Node; } } this doesnt work, it says its unidentified. any ideas?You need an entry point (main) void main() { //Code starts here } -- -Anderson: http://badmama.com.au/~anderson/
Apr 20 2004
Fabian wrote:class Node { Node myPointer; void test() { myPointer = new Node; } } this doesnt work, it says its unidentified. any ideas?This might work a little better: class Node { Node myPointer; void test() { myPointer = new Node; } } void main() { Node n = new Node(); n.test(); } -- Justin http://jcc_7.tripod.com/d/
Apr 20 2004