PDA

View Full Version : Whats my options?



chrismax2
05-01-2004, 09:58 AM
Hi I been slowly trying to teach myself C++ through, Deitel, and I have got to the third chapter, and as anyone who has looked at the book would know there is a lot of Exercises especially in the first 4 chapters. However I just spent an hour looking at that annoying towers of hanoi, or whatever its called problem, and I got no idea even slightly. I thought pointers looked bad.
If I canít do this, should I learn another language that donít have Recursion in it?
Come back pointers all is forgiven LOL

Chris :)

Just wanted to see peoples opinions on programmers who cant do Recursion.

Lurker
05-01-2004, 10:00 AM
Go through things slowly and make as many test programs as you can. You'll get it soon enough.

axon
05-01-2004, 10:02 AM
recursion is a basic method of computer science - you will run into it, one way or another, in any computer language. Many beginning programers have problems with recursion, so don't get discouraged. Work out simple problems on paper to see how basic recursion works. My professor from a couple of semesters ago had a pretty good recursion explanation with real life examples...if I'll find I'll post.

DavidP
05-01-2004, 10:02 AM
>However I just spent an hour looking at that annoying towers of hanoi

I love towers of hanoi!

>If I canít do this, should I learn another language that donít have Recursion in it?

Recursion is an essential element to both mathematics and computer science. You cannot just avoid it. Keep on working at it. You will find very few computer languages that do not allow recursion.

chrismax2
05-01-2004, 10:11 AM
OK thanks guys, I will keep trying
:)

Thantos
05-01-2004, 12:41 PM
Recursion is a funny beast. You start off not understanding it, then you will use it too much, and finally you learn how to rewrite your code without it :)

Silvercord
05-02-2004, 03:44 PM
Yeah I kind of agree with exactly what thantos said, but don't worry bub just like anything else it'll become like second nature once you get used to using it.