Results 1 to 8 of 8

Thread: C Where to begin?

  1. #1

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    9,677

    C Where to begin?

    I am wanting to start programming in C, but I don't know where to begin. It seems as though there are so many versions: ansi c, c99, c11, etc. Where should I begin?

  2. #2
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    679

    Re: C Where to begin?

    For c, c99 is the current standard. c11 refers to c++11.

    Do you want to learn c or would you prefer c++?? The base of c++ is very similar to c but c++ is an OOP language and for new applications IMO is now more widely used.

    For which os are you going to use for c/c++ programming?
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++17 Compiler: Microsoft VS2019 (16.7.3)

  3. #3

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    9,677

    Re: C Where to begin?

    What I'm wanting to do is to create a scripting language and I would like it to be super quick and lightweight. I know that LUA was written in ANSI C, but that was 25 years ago.

    I do know a little bit of C++, mostly I can read it, but I can write a temperature converter(Fahrenheit to Celsius and vice-versa). But I didn't know if C++ would be OK for this or which would be better.

  4. #4
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    679

    Re: C Where to begin?

    c++ will be fine for creating a scripting language.
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++17 Compiler: Microsoft VS2019 (16.7.3)

  5. #5

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    9,677

    Re: C Where to begin?

    I'm concerned about cross-compatibility and not concerned about GUI applications, is C++ OK to use?

  6. #6
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    679

    Re: C Where to begin?

    c++11 is an ISO standard. There are c++11 compilers available for various platforms.

    Which system(s) are you targeting?
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++17 Compiler: Microsoft VS2019 (16.7.3)

  7. #7

    Thread Starter
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    9,677

    Re: C Where to begin?

    I would like to target Windows and Linux. I'm not really concerned about Mac or thier OSes. With Windows I'm thinking XP - 8.1 and Linux I'd like to target the more popular versions like Ubuntu.

  8. #8
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    679

    Re: C Where to begin?

    There are c++11 compilers for both Windows and Linux. If you want a compiler that will work on both then have a look at gcc https://gcc.gnu.org/

    I don't know whether it will work with Windows XP as this OS has now been 'retired' by Microsoft. The MS Visual Studio including c++ compiler is for Windows only (the current version is 2013 which needs at least Windows v7 - https://www.visualstudio.com/downloa...sual-studio-vs). The VS2013 Community edition is free.

    Note that these compilers will compile either c++ or c code depending upon the file extension (.c for c, .cpp for c++).

    I use MS VS2013 as I only target Windows.
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++17 Compiler: Microsoft VS2019 (16.7.3)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width