FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    What is the C language head file?

     

    Today we come to talk about the header file in the C language. The C language program code file extension can only be .c or .h, in other words, C language program code can only be written in a file that extension is .c or .h. We call the .h file called header files. The header file can be referenced in the .C file or reference it in .h file. What is the header file to do? Let's see a program code. The left is the source code, and the right is the execution result. The function of this code is to print the string "Hello, World!". We can see that the first line of the source code file is "#include", that is, the header file stdio.h is referenced. Now let's take this line, and then take a look at the results. Note: The C language plus double slash "//" represents the comment, that is, remove this line of code. At this time, we found that the result column behind the right, why? This is because the print statement is the printf function output, and the PrintF function is declared in the header file stdio.h, remove the reference stdio.h this line, the code can't find the printf function when compiling, so I'm an error. . Some friends ask, do we do not quote the header file, can you put the printf function in the .C file? sure. However, Printf is a common function, almost every .c file is used, there are many functions that use the frequency of frequent frequency, even hundreds, there are many. C files in a project, each .C file Hundreds of functions declare, is it hard to see? Moreover, we just want to call these functions directly, do not care about these functions, why bother to list it in our .c file? The C language provides us with many universal functions, such as copy functions, comparison functions, etc., placed in a universal library for us to use directly, and these functions are placed in some standard header files, stdio. H is one of the standard header files. We can directly call the functions declared in the header file without the need to implement these functions. Of course, in addition to citing standard header files, we can also create and write head files yourself according to actual needs. Then can the content of the header file can only be a function declaration? of course not. In addition to function declarations, variable definitions, structural definitions, macro definitions can be placed in the header file, if you think that a function you write is high, you can put it in the header file. All in all, generic things can be placed in the header file. The reference to the header file can be written into "#include" or written "#include" stdio.h ", like the following figure. The header file is enclosed in a sharp bracket and the meaning of the quotation is different. The former means that the compiler will go directly to the C-function library or the path to the user configured to find it, and will not look for the current directory. The latter means that the compiler will go in the current directory, if the current directory can't find, go to the C-function library or the path to the user configured to find. The current directory mentioned here, you can understand the directory where the files of the reference header file are set. Ok, I will share it here today. Read more

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us