Hi I'm new!

Hi I'm new! In all ways, I could say...
I'm trying to learn programming, but as you know it's not an easy task! So, despite all the good books and tutorials, some compiling or runtime errors often occur.
When that happens, I, isolated learner, fall in panic and frustration.
So I was wandering if there is a place for programming beginners to show their code and ask for suggestion or fixing. Maybe some forum or whatsoever!

For example I was making a try to build a little calculator terminal program, but running it I get a runtime error that make it crash. Is in obj-c. Here the .h code:

(Notice the (float), I think an explicit typecast is always better than an implicit one) - unless you need to keep the last result and last operands around for some reason, of course, but I don't think you actually do.

Oh, thanks.
But isn't the NSAutoreleasepool object sufficient for creating new objects? In some example I've seen around they use NSAutor... instead of manual activation and it works, what I'm missing? here's the example:

It could replace [calc release], but you'd need to have something like:

Code:

Calculator *calc = [[[Calculator alloc] init] autorelease];

(which is the same as)

Code:

Calculator *calc = [[Calculator alloc] init];
[calc autorelease];

The NSString in the example you posted is being created by a class "convenience" method, which does all the alloc init stuff for you. This also means it's "owned" by the class, meaning that it's the classâ€™s responsibility to release it. (In fact, this just means it's added to the autorelease pool when it's created).

There's a good section on this in the documentation, but I found it very hard to understand until I'd played with some code.