New TO C!!!

This is a discussion on New TO C!!! within the C Programming forums, part of the General Programming Boards category; is there anyone here to help me to understand all this library and what's purpose of each one of it?I'm ...

  1. #1
    Xman
    Guest

    Talking New TO C!!!

    is there anyone here to help me to understand all this library and what's purpose of each one of it?I'm just started to learn c.
    thx.



    #include <stdio.h>
    =
    #include <string.h>=

    #include <fcntl.h>
    =
    #include <sys/types.h>
    =
    #include <sys/stat.h>=

    #include <dirent.h>=

  2. #2
    Xman
    Guest

    help!

    i'm asking help here.don't u just give few comment only.
    i wanna full explanation,ok
    is this the board who wants to help ppl?

  3. #3
    Registered User
    Join Date
    Aug 2002
    Posts
    21
    The answer you received was intended to help but it expected a little work on your part.
    Anyway, I'm not a raw beginner but I'm no expert either. So I'll only attempt to give you a short example.

    Code:
    #include <stdio.h>
    
    int main(void)
    {
      printf("Hello World!");
      return 0;
    }
    the function printf() in the above example will print "Hello World!" to your screen. The stdio.h is a header file which allows you access to this pre-written function, without you having to write the code needed to print to screen. There are many other functions accessed using this header file and the same applies to the other header files you have listed.
    My explanation may have some flaws in it so I'm sure there will be someone out there who'll correct me if this is the case.
    Hope this is of some help.

    hobo

  4. #4
    xMan
    Guest

    Unhappy Ok

    hi hobo,
    in case of the program that u posted it..
    y there is such (void) besides the main? some answer pls,

  5. #5
    Registered User
    Join Date
    Oct 2002
    Posts
    385
    xman, please read a book on learning C before asking such simple questions. The questions you're asking will be answered in a book about C and by searching on google. When you run into some more specific problems then come here and ask.

    Yes, this board is about helping but the members here won't hold your hand and explain things that are easily researchable and explained through the Internet or by a book.
    Wandering aimlessly through C.....

    http://dbrink.phpwebhosting.com

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21