Thumbs upSolvedStarting C Language

Posts 1–15 of 19 · Page 1 of 2
Starting C Language
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++
Quote Originally Posted by Hell_Demon View Post
iPhone apps are in Objective C, which is a lot different from C/C++
So I should google that? :P Since there ain't any objective C section here ..
Quote Originally Posted by n0real View Post
So I should google that? :P Since there ain't any objective C section here ..
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
Code:
#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
Fraction.m
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
The above code makes me want to stab out my eyeballs and throw up repeatedly until I'm dehydrated and die. Seriously.

P.S. I'm a biased bastard, maybe you find this code beautiful in that case I'd say go for it :P
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!
Quote Originally Posted by n0real View Post
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!
I think you have a decent chance at actually succeeding Good luck mate
It's a disgrace that they used a C in it's name
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
Quote Originally Posted by TheVanoq View Post
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
Hm.. so you are saying I should make android apps instead?

I have an android phone too, but I just find Xcode great to use, because you can test your app on your mac PC..

Java = easier to make apps ??

I need the one that takes the least time >_>
Quote Originally Posted by n0real View Post
Hm.. so you are saying I should make android apps instead?

I have an android phone too, but I just find Xcode great to use, because you can test your app on your mac PC..

Java = easier to make apps ??

I need the one that takes the least time >_>
In my opinion android app development is much easier(Java is much easier to learn then Objective-C, also looks cleaner IMO), You can test your apps in the android virtual machine that comes with the SDK.
Quote Originally Posted by Hell_Demon View Post
In my opinion android app development is much easier(Java is much easier to learn then Objective-C, also looks cleaner IMO), You can test your apps in the android virtual machine that comes with the SDK.
So should I take your opinion trustworthy? :P

If you know what you are talking about, and I assume you do, then I guess..

Java it is? :>

When you are saying it's easier to learn, what do you mean then? How much time am I saving approx?
Quote Originally Posted by n0real View Post
So should I take your opinion trustworthy? :P

If you know what you are talking about, and I assume you do, then I guess..

Java it is? :>

When you are saying it's easier to learn, what do you mean then? How much time am I saving approx?
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)
Quote Originally Posted by 'Bruno View Post
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)
Thanks for your honest opinion too =)

But I have never coded in C# or any other language, I'm starting for the first time now :P

But maybe I should go for java.. then I don't need mac system either..
Quote Originally Posted by n0real View Post
Thanks for your honest opinion too =)

But I have never coded in C# or any other language, I'm starting for the first time now :P

But maybe I should go for java.. then I don't need mac system either..
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.
Posts 1–15 of 19 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us