iPhone apps are in Objective C, which is a lot different from C/C++
Hello all!
I want to start on the C language, because I'm going to develop iPhone apps.
Problem is, I don't really know where to start.. I don't even know if C is enough, or it must be C++
I can't find any C programming tutorials here, only C++..
Could anyone help me starting up, maybe give a link to a good TUT for newbies??
Only thing I know is that I can use Xcode as the compiler? for apple apps.
Hope someone can help me get started..
Thx in adv.,
iPhone apps are in Objective C, which is a lot different from C/C++
Ah we-a blaze the fyah, make it bun dem!
n0real (04-25-2012)
Yeah, I'm warning you though; Objective C is one of the worst languages ever invented. It's a disgrace that they used a C in it's name >:C
Fraction.h
Fraction.mCode:#import <Foundation/NSObject.h> @interface Fraction: NSObject { int numerator; int denominator; } -(void) print; -(void) setNumerator: (int) n; -(void) setDenominator: (int) d; -(int) numerator; -(int) denominator; @end
The above code makes me want to stab out my eyeballs and throw up repeatedly until I'm dehydrated and die. Seriously.Code:#import "Fraction.h" #import <stdio.h> @IMPlementation Fraction -(void) print { printf( "%i/%i", numerator, denominator ); } -(void) setNumerator: (int) n { numerator = n; } -(void) setDenominator: (int) d { denominator = d; } -(int) denominator { return denominator; } -(int) numerator { return numerator; } @end
P.S. I'm a biased bastard, maybe you find this code beautiful in that case I'd say go for it :P
Ah we-a blaze the fyah, make it bun dem!
n0real (04-25-2012)
Lol :P
Well I have to go for it, whether it's a beautiful code or not
Thx for the codes.. I'll look into this!
Hell_Demon (04-26-2012)
n0real (04-26-2012)
It's a disgrace that they used a C in it's name
Hell_Demon (05-10-2012)
Why is it a disgrace? :P
Do you recommend another language for programming iPhone apps?
There is no other language. You HAVE to use Objective C as far as i know. And yea, it really is a pain and it made me switch over to Java and Android :P
Hell_Demon (05-10-2012)
n0real (05-11-2012)
If you already coded in C# for example, it wont be that hard, just a few (almost none) differences to java.
Even the VM is the same shit.
About android, no doubt that i agree with wes (Helldemon), it is easier on everything, coding, testing, etc.. And you would be learning an useful language.. (Compared to Obj-C, There is no doubt that java is way more worth your time)
Light travels faster than sound. That's why most people seem bright until you hear them speak.
I agree, because even if you give up on Android deving, because you dont like it, or because you dont find it worth your time. You can always continue with Java, and code for windows, linux, mac, etc.. etc.. (Everything nowadays can use java, it is ridiculous) And I cant say the same about Obj-C.
In the end, it is up to you.
Light travels faster than sound. That's why most people seem bright until you hear them speak.
Hell_Demon (05-12-2012),n0real (05-11-2012)