Thread: Best resource for intro to C?

  1. #1
    Registered User Fool's Avatar
    Join Date
    Aug 2001
    Posts
    335

    Best resource for intro to C?

    Like most of you already know I started college about two weeks ago studying programming. In the first semester they give you theory and help you learn the logic behind program design, so this semester we are not learning any languages. I'll be taking C 2nd semester though. I've seen a little bit on C but it feels like the tutorials on CProgramming.com expect you to know a little about C. I'm looking for a book/online tutorial that will explain everything to me. IE- What does all this mean?
    #include <stdio.h>
    #include <iostream.h>
    #include <conio.h>
    I know it includes the ability to use certain things within your code but what is it that you can include? It's the little things like this that I need to know and would appreciate anyone pointing me in the correct direction. Thanks!

    -Fool

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Well, aside from asking questions on here (which is always a great idea, provided you try to solve the problem yourself too), there's books online. A good place to start is informit.com - they have a bunch of free books online to check out. Also, http://www.ty.sx.cn/wenxue/diannao/lci21/index.html has all of Learn C in 21 Days. There's other boards similar to (but not nearly as good as... *g*) this one at programmerheaven.com. That help a little?

  3. #3
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    I recommend you buy a good book or two rather than relying on online tutorials. Online tutorials are helpful but they rarely go into depth on any particular subject but are more likely to skim over things.

    for beginning c something like c for dummies or the c primer would be ideal.Neither of these are too expensive.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  4. #4
    Registered User Fool's Avatar
    Join Date
    Aug 2001
    Posts
    335
    Are there any books you know of that I can buy and learn with? Thanks for all your help guys, I can tell this place will help me alot these next two years

    -Fool

  5. #5
    Registered User Fool's Avatar
    Join Date
    Aug 2001
    Posts
    335
    Oh cool, thanks for the books Stoned_Coder!

    -Fool

  6. #6
    Anti-Terrorist
    Join Date
    Aug 2001
    Location
    mming, Game DevelopmentCSR >&<>&2Minimization of boolean functions, PROM,PLA design >&0>&WA, USA guitar, dogsCommercial Aviation >&>>&USAProgramming
    Posts
    742
    You can't get a book that explains everything. If you want the definition of C than you can get it in a .pdf format, but this is a technical document, it's called ANSI ISO/IEC 9899.

    The #include means that the compiler will include definitions from the specified libraries. Some libraries are essential such as 'standard input/output'. In order to get a technical understanding you might want to reference 9899 but you would also need to understand the internals of your operating system.

    There are many good books that teach 'C'. Start by reading one of them. Go to this website: www.accu.org and look under the book reviews for information.
    I compile code with:
    Visual Studio.NET beta2

  7. #7
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    Btw, the links I posted (for Learn C in 21 Days and informit.com) aren't online tutorials. They're copies of actual books that you can buy, except they've been transferred onto the web.

  8. #8
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    C for dummies is great as a first step. The two books will guide you through loads of usefull things that youreally do need to progress with the language. IE

    Structures
    Arrays
    Pointers (oh yeah - pay attention to this)
    File IO.........

    The books are very "hand holding" - which is why many are turned off by them. But I thought they were good. And Gookin's site carrys extra lessons - link lists, system calls..... He also answers emailed questions - as long as you dont p#ss him off!

  9. #9
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,263
    Teach Yourself C in 24 Hours by Tony Zhang

    best starting book there is...

    but be warned it only introduces you by teaching the VERY BASICS.

  10. #10
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    While it is basic , it has several inaccuaracies starting out with confusion about the return type of main. It's more like teach yourself c for java. There are better
    beginning books out there.





    The teach yourself c++ by Jessy Liberty (c# traitor!) is better and does not
    assume any programming expeirence. After finishing that book you might
    want to look at Stroustrups book.

  11. #11
    Anti-Terrorist
    Join Date
    Aug 2001
    Location
    mming, Game DevelopmentCSR >&<>&2Minimization of boolean functions, PROM,PLA design >&0>&WA, USA guitar, dogsCommercial Aviation >&>>&USAProgramming
    Posts
    742
    A C++ book would be okay if he was taking C++ but that is not the case. I know lots of good C++ books but what is the point?
    I compile code with:
    Visual Studio.NET beta2

  12. #12
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    >>The teach yourself c++ by Jessy Liberty (c# traitor!) is better and does not
    assume any programming expeirence

    I've bought that in an effort to wean me off straight C and onto C++. It is quite a good book I must admit, but I have only managed to do a few chapters (other things coming up and stealing my attention - Java, Delphi, Winsock.....)

    Herb Schildt's book "C - the complete reference" is also good. Loads of functions, intro to Winapi (well a very bare one at least), linked lists, search & sort techniques....... My only problem with the book is its binding - the damn thing is held together with sticky tape and elastic bands!

  13. #13
    Red Panda basilisk's Avatar
    Join Date
    Aug 2001
    Posts
    219
    I have been using C: How to Program by Deitel and Deitel to teach myself and its not a bad book (but i have no college tutoring to back me up) - it has lots of very good programming exercises to do. However as it is primarily used as a college textbook it contains no answers (i created a fuss with the publishers in the US and UK and managed to get a copy of the instructors answers though - i swear i answer the questions first and only use these to check my results off)... it also comes with chapters on introducing java and c++
    Do not meddle in the ways of dragons, for thou art crunchy and taste good with ketchup

  14. #14
    Registered User
    Join Date
    Aug 2001
    Posts
    89
    i started programming with C++.
    i do not understand, why bother to learn C first?
    learn C++ and you will know C.
    am i mistaken?
    behold the faithless one and his angel

  15. #15
    Registered User Fool's Avatar
    Join Date
    Aug 2001
    Posts
    335
    I'm in college so I have to follow a certain path.

    I just bought "C Primer Plus". It looks just like the book a saw in our college bookstore so I'm praying it will be the one I'll need for the class. That would be one less book I need to buy

    -Fool

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sorting out a resource manager
    By psychopath in forum Game Programming
    Replies: 1
    Last Post: 11-10-2008, 07:12 PM
  2. unmanaged resource
    By George2 in forum C++ Programming
    Replies: 2
    Last Post: 01-03-2008, 04:23 AM
  3. CreateProcess with Resource of executable, not the Filename
    By Ktulu in forum Windows Programming
    Replies: 4
    Last Post: 11-04-2006, 01:07 AM
  4. resource problem/question
    By stallion in forum Windows Programming
    Replies: 4
    Last Post: 01-29-2003, 02:08 PM
  5. Serial Communications in C
    By ExDigit in forum Windows Programming
    Replies: 7
    Last Post: 01-09-2002, 10:52 AM