Thread: Hi, where do I start to learn?!

  1. #1

    Exclamation Hi, where do I start to learn?!

    Hi everyone,

    I am john and I'm a college student who is going to take a university class in about a week and a half. I am going to be learning C language primarily. Where do I begin, with the tutorials right off this site on the homepage? If any of you have an idea as the best way to prepare myself and learn, especially in this short about of time, and for the rest of the semester, please tell me. Thanks a lot and I need replies!

    Peace, John

  2. #2
    it's me John again,

    I am also working on a school computer, and it is called "X-session", I think you call it "NT" type of setup. I am really not to fancy with computers and types of programmings and am just learning.

    I get a "terminal" window, and it gives me a prompt that says
    "l-ecn015%". I have all types of problems deleting mistakes from my text and all that. I know how to start a program, I type "vi file(name of file, just me here).c" I know how to compile it too, type "cc ..." and the rest is filename. but I can't edit it. maybe I should use a text editor before I go to the "terminal" window, but I should have better control in the terminal window when I make mistakes. Hm, hope someone out there can get me some place to deal with this, or had the same problem.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    A quick person can learn the basics of C in about a week, provided they are familiar with programming in general they can write useful programs quickly. The best option is always to get several good books and read them. I would recommend the following for starting out:

    The C Programming Language. Kernighan & Ritchie
    Pointers on C. Kenneth Reek

    And maybe a book on algorithms and data structures, I've found Algorithms in C by Robert Sedgewick to be wonderful. It would also be a good idea to read these boards both by studying the code and responses in current threads and older threads by using the search utility. That's what it is there for and you can find a wealth of knowledge and experience merely by reading what we've posted.

    My best code is written with the delete key.

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    So, you're accessing a Unix box, with no clue how to use it

    vi is an editor. Learn about it here.

    You can change your backspace key using stty settings. See here for an example.

    Have fun
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  5. #5
    thanks folks,

    there is a lot to learn. I'm sure you all have talked a lot of the road bumps I have or will have.

    I am working in the text editor now, it's a lot easier.
    Right now I have this really neat book called
    "Teach yourself C programming in 21 days" by Aitken and Jones, it's a "Sams Premier" book. I like that short time, 21!

    I did some programming in fortran(very outdated) and some matlab, that experience is better than nothing.

    only thing I am doing right now is trying to do the standard(as my advisor told me) "hello world" program. I got it saved and all, but this book told me to run it by just typing "hello"(my filename is hello.c). I did that at the prompt in the "terminal" but got
    "hello: Command not found." Till later, I'll get to that link on how to work in the terminal for UNIX and see what I can do.
    Thanks again.

  6. #6
    neva mind brothas and sistas,

    I got it solved when my friend came by. I only had to type "a.out" and it executed. I'm ready to go!

    I like this place, I"ll check this out again maybe later, peace, John

  7. #7
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Read the book and learn vi or emacs. With emacs you can do this:

    emacs prog.c

    Than it will open the editor. To save type Ctrl-x-s, that is hold Ctrl and type x than type s, than release Ctrl. To exit emacs type, Ctrl-x-c.

    To compile your program on the console type:

    gcc -o prog prog.c

    Than to run the program type:


    A good way to gain experience is to answer some of the questions on this board.

    Preludes book suggestions are good ones. I have not read either of those book, but I do own them! I know that they are good based on book reviews.
    Last edited by Troll_King; 08-16-2002 at 04:02 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. what do you need to start game programing?
    By lastresort in forum Game Programming
    Replies: 13
    Last Post: 02-18-2005, 10:12 PM
  2. How to start Game Programming ?
    By megablue in forum Game Programming
    Replies: 2
    Last Post: 09-08-2004, 02:24 PM
  3. You have to learn C in order to learn C++
    By gandalf_bar in forum A Brief History of
    Replies: 20
    Last Post: 07-16-2004, 10:33 AM
  4. Please help me get start on a C++ Builder trivial parser...
    By Unregistered in forum Windows Programming
    Replies: 0
    Last Post: 07-03-2002, 12:17 AM
  5. Need some help with a basic tic tac toe game
    By darkshadow in forum C Programming
    Replies: 1
    Last Post: 05-12-2002, 04:21 PM