Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    n0real's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    bottom of a bottle
    Posts
    277
    Reputation
    10
    Thanks
    20
    My Mood
    Psychedelic

    Thumbs up 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.,

  2. #2
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    iPhone apps are in Objective C, which is a lot different from C/C++
    Ah we-a blaze the fyah, make it bun dem!

  3. The Following User Says Thank You to Hell_Demon For This Useful Post:

    n0real (04-25-2012)

  4. #3
    n0real's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    bottom of a bottle
    Posts
    277
    Reputation
    10
    Thanks
    20
    My Mood
    Psychedelic
    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 ..

  5. #4
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    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
    Ah we-a blaze the fyah, make it bun dem!

  6. The Following User Says Thank You to Hell_Demon For This Useful Post:

    n0real (04-25-2012)

  7. #5
    n0real's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    bottom of a bottle
    Posts
    277
    Reputation
    10
    Thanks
    20
    My Mood
    Psychedelic
    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!

  8. The Following User Says Thank You to n0real For This Useful Post:

    Hell_Demon (04-26-2012)

  9. #6
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    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
    Ah we-a blaze the fyah, make it bun dem!

  10. The Following User Says Thank You to Hell_Demon For This Useful Post:

    n0real (04-26-2012)

  11. #7
    AllieNaquint's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    1
    It's a disgrace that they used a C in it's name

  12. The Following User Says Thank You to AllieNaquint For This Useful Post:

    Hell_Demon (05-10-2012)

  13. #8
    n0real's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    bottom of a bottle
    Posts
    277
    Reputation
    10
    Thanks
    20
    My Mood
    Psychedelic
    Why is it a disgrace? :P

    Do you recommend another language for programming iPhone apps?

  14. #9
    TheVanoq's Avatar
    Join Date
    Feb 2012
    Gender
    female
    Posts
    1
    Reputation
    10
    Thanks
    1
    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

  15. The Following User Says Thank You to TheVanoq For This Useful Post:

    Hell_Demon (05-10-2012)

  16. #10
    n0real's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    bottom of a bottle
    Posts
    277
    Reputation
    10
    Thanks
    20
    My Mood
    Psychedelic
    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 >_>

  17. #11
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    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.
    Ah we-a blaze the fyah, make it bun dem!

  18. The Following User Says Thank You to Hell_Demon For This Useful Post:

    n0real (05-11-2012)

  19. #12
    n0real's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    bottom of a bottle
    Posts
    277
    Reputation
    10
    Thanks
    20
    My Mood
    Psychedelic
    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?

  20. #13
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    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)
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  21. #14
    n0real's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    bottom of a bottle
    Posts
    277
    Reputation
    10
    Thanks
    20
    My Mood
    Psychedelic
    Quote Originally Posted by Brinuz 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..

  22. #15
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    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.
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  23. The Following 2 Users Say Thank You to 'Bruno For This Useful Post:

    Hell_Demon (05-12-2012),n0real (05-11-2012)

Page 1 of 2 12 LastLast

Similar Threads

  1. [C/C++ Tutorial] Starting in Direct-X 8.1
    By Dave84311 in forum Programming Tutorials
    Replies: 55
    Last Post: 04-02-2021, 07:16 PM
  2. Starting Language
    By InCapacitated in forum General
    Replies: 45
    Last Post: 05-06-2011, 03:20 PM
  3. iLterate noob language - English translations
    By RebornAce in forum General
    Replies: 4
    Last Post: 04-18-2011, 05:44 AM
  4. [Help] best language to start on?
    By deadskulz in forum Coders Lounge
    Replies: 60
    Last Post: 03-10-2011, 03:51 AM
  5. What programming language do i start with?
    By romor24 in forum Programming Tutorial Requests
    Replies: 1
    Last Post: 07-15-2009, 12:47 PM