Here, let me fix that for you:Much better.Originally Posted by Brian
Quzah.
Here, let me fix that for you:Much better.Originally Posted by Brian
Quzah.
Hope is the first step on the road to disappointment.
heh yeahOriginally Posted by quzah
It works. What exactly is wrong with the way I used typedefs?
If you understand what you're doing, you're not learning anything.
Nothing, it's just "ugly".Don't use all-caps for typedefs, it's ugly.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Oh well, at least my code is indented. It's just some capital letters. Get over it.
EDIT: By the way, quzah's "fixed" version encompassed all typedefs.
Last edited by itsme86; 12-28-2005 at 05:05 PM.
If you understand what you're doing, you're not learning anything.
Where is that?By the way, quzah's "fixed" version encompassed all typedefs.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Like, right after Brian's comment.
Originally Posted by quzah
If you understand what you're doing, you're not learning anything.
use pointers for calling. whatever parameters are goin to be changed should be passed by reference so that you can get the change in your main().othr way of doin it could be that u return your changed parameter everytime. so that if you're changing r1,call using
r1=insert(q1,r1);