1. Tree.e, Whatchallit; virtual methods? Polymorphism? Gimme!
- Posted by Anders Eurenius <c96aes at OXE.CS.UMU.SE> Jul 05, 1997
- 591 views
I seem to have painted myself into a corner here... Slice.e (new version btw) Tree.e calls stuff in slice, also calls previously defined funk: showkey(tree,pointer,private) And here comes the twist: I'd like showkey to be able to call tree.e funk. This is not possible since it has to defined before tree.e is included. One way to beat it is to put it in its own include file, (included in tree.e, written by user of tree.e) but this is *such* a *reach-around*! Lemme call virtual methods, so people can morph for their own datatypes! Comments? Also, a "hard" string-type would be nice, so ? can print strings... Anyway, I'll be signing off in a while, so I'll prolly just drop the project on you to tinker with... Anders Ps. Oh, yeah: "PreOrder" is 'me' first, children after, right? ------------------------------------------------------------------- Anders Eurenius <c96aes at cs.umu.se> ICQ UIN:1453793 Computer Science/Engineering student at the university of Umeaa -------------------------------------------------------------------