||[Nov. 6th, 2002|11:03 am]
#1, and finished writing a binary tree library. Then I decided to get fancy and write it up as a template. I got started on |
Then, I remembered I don't know how to do that, so I have to go back and fix it. Can structs even be templates? It should. structs are just classes that are public by default. I don't think you can do something along the lines of
typedef btnode<T>* btpointer<T>, unfortunately.
Maybe because my functions aren't members. *sigh*
I suppose I can either strip out all of the template junk and do the assignment as described, or I can make a binary tree class template.
I know what I should do: I should strip out the template junk, get the intcollection working (int collection is a client to this library) and then do 72, and then, if I have time, make a binary tree class template. Whether or not I'll do that, we'll see.
This has to be pretty sad. I've been working on this since I got out of class at 3:30, with a half hour break for dinner. Not that I'm particularly attached to doing this lab. If anyone called me and gave me a horrible excuse not to work on this, I would've been out of here. Where is everyone, anyway?
Hm. Well, I need to get out of this room, and if no one's going to make an excuse for me to leave, I'll make one of my own. A walk in the cold brisk air wearing my borrowed warm kickass winter jacket will be good for the body, mind, and soul. When I get back, I'm going to get the intcollection working and admit defeat for now. Maybe. I can be stuborn at times.
Is it only Wednesday? Going home threw off my internal calendar. Got lots of great music the one night I was home.. must bring CD's with me next time to burn all of it.