字体:
You just don't get how powerful template can be, do you? STL is just one example of template applications [#2875955@0 -ROLIA.NET 相约加拿大网上社区 之 枫下论坛 & 枫下部落, 枫下论坛主坛 ]

You just don't get how powerful template can be, do you? STL is just one example of template applications

by super_unknown (mailman) at 2006.3.31 11:20 (#2875955@0)
I've backed my words by demonstrating my code and solving your problem : a tree which supoprts degree 4. That's enough. If you don't get it, that's your problem.
"the node of tree has a pointer to its parent"? And you asked " I guess you must have good time make it happen. "? Dude, you are funny. Yes, it must take the rest of my whole life to add one line code! LOL!!!
And "move the node from memory to harddrive"?
Regardless the details, say file I/O, or in fancy terms, serializing,
What do you want to prove?
Do you really understand what generic programming is for? It's not magic, it 's not for everything, can you find me where I've said anything remotely close to that please?
All I've been saying is that C++ template enables you to write one generic code for any given algorithm/data structure, regardless the type of elements in containers.
Whether you get my point or not, I'll have to end the discussion with you.
It has been pleasant talking to you. :-)

该话题已在历史区内,不能被修改或回复。       收藏    投诉
关闭窗口