Thread: Going further in C + Comments on simple program

  1. #16
    Registered User doCode()'s Avatar
    Join Date
    Feb 2015
    Location
    Le Universe
    Posts
    13
    Check on the bottom of the FAQ page. It links to the source code and instructions on how to compile it.
    What do I have to do understand at least 30% of the source code? It looks really complicated to me.

  2. #17
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    Quote Originally Posted by doCode() View Post
    What do I have to do understand at least 30% of the source code? It looks really complicated to me.
    For reading the source code it's maybe better to start with a type of program you've written before. For example, you probably have experience writing command-line programs, because most books teach those. In this case, you're in a good position to understand an open source command line program out there. So download one and try to build it. Then, look at the source code and see how it works. Run it through a debugger and step through any interesting sections of the code and see how they work interactively.

  3. #18
    Registered User doCode()'s Avatar
    Join Date
    Feb 2015
    Location
    Le Universe
    Posts
    13
    Thanks! And any good n00b friendly resources for ncurses? I want to make a Tic Tac Toe game.

  4. #19
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    Quote Originally Posted by doCode() View Post
    When reading the reviews of this book this partial sentence stands out:
    it's still about 16 bit integers and turbo c/c++,
    If this is true then this book is probably not worth the paper it printed on, I'd look for another book.

    Jim
    Last edited by jimblumberg; 03-02-2015 at 01:33 PM.

  5. #20
    Registered User doCode()'s Avatar
    Join Date
    Feb 2015
    Location
    Le Universe
    Posts
    13
    Um, Turbo, as in, 1990?

  6. #21
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    Yes.

  7. #22
    Registered User doCode()'s Avatar
    Join Date
    Feb 2015
    Location
    Le Universe
    Posts
    13
    That's dead now, right?
    (Pls forgive my ignorance.)
    Last edited by doCode(); 03-02-2015 at 01:45 PM.

  8. #23
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    Quote Originally Posted by doCode() View Post
    Thanks! And any good n00b friendly resources for ncurses? I want to make a Tic Tac Toe game.
    There is this one for C programmers: NCURSES Programming HOWTO

    Learn the basics from that manual. There are also many Python/curses examples and tutorials out there. The knowledge in the Python examples is mostly transferrable even if you're using the straight C library because the curses commands have pretty standard names and conventions in all flavors.

  9. #24
    Registered User doCode()'s Avatar
    Join Date
    Feb 2015
    Location
    Le Universe
    Posts
    13
    And if I'm looking for sample console programs in C, is Codeproject the right place?

  10. #25
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by doCode() View Post
    That's dead now, right?
    (Pls forgive my ignorance.)
    Not if you live on the sub-continent of India.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  11. #26
    Registered User doCode()'s Avatar
    Join Date
    Feb 2015
    Location
    Le Universe
    Posts
    13
    No, Bangladesh. :-)

    There isn't any place to learn programming here, as far as I know.

  12. #27
    Registered User
    Join Date
    Jun 2011
    Posts
    88
    Quote Originally Posted by doCode() View Post
    I'm sorry, I don't understand.
    It's only for holding two letters. E.g "kg", "lb" etc.
    its only big enough to hold 1 char "kg", "lb" require 3 .

  13. #28
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    I suggest you take a look at this C Book list or read through the C book list at the top of this forum.

    Jim

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Deleting comments in another program
    By chrissy2860 in forum C Programming
    Replies: 4
    Last Post: 02-03-2012, 04:15 PM
  2. program to remove comments from source
    By Abda92 in forum C Programming
    Replies: 12
    Last Post: 12-25-2006, 05:18 PM
  3. comments my program
    By ssharish in forum C++ Programming
    Replies: 4
    Last Post: 02-26-2005, 09:53 AM
  4. I need comments and answers for this C program
    By BadProgrammer in forum C Programming
    Replies: 2
    Last Post: 05-25-2003, 10:57 PM
  5. Replies: 5
    Last Post: 12-05-2001, 07:37 AM

Tags for this Thread