Ask a low-level question: what is the function and meaning of the header file containing #include?

Source: Internet
Author: User
Ask a low-level question: what is the function and meaning of the header file containing #include? Landlord lhb7788 (lhb7788) 2000-12-21 10:58:00 in C/C + +/language questions

Problem points: 0, reply times: 7Top 1/F Ddddh (Ye Junlin) reply to 2000-12-21 11:02:00 score 0

The header file is to let the compiler know the function of the prototype, used to do the grammar check, this is my understanding. Top 2 Floor Wistaria (listen to the wind listen to rain) reply to 2000-12-21 11:03:00 score 0

is to include other files in the current file.
To say the role: first, if a single file is too large, compile a problem
In addition, it is convenient to read documents, easy to document management top 3 floor x86 (snow) back to 2000-12-21 11:04:00 score 0

is to include the corresponding. h file. Equivalent to the entire copy of the head file to the. c File
In fact, you can also #include. c files
Top 4 floor Bounce (Chanel) back to 2000-12-21 11:17:00 score 0

Preprocessing command #include will cause the preprocessor to replace the command line with the contents of the specified file.
That is, the equivalent of writing a function that implements certain (basic) functions, inserted in
The beginning of the program, so that the program is short, the benefits of a lot ... Oh
Top 5 Floor Wwwunix (Wood yi) reply to 2000-12-21 11:38:00 score 0

Another function is to make it easier to migrate. Top 6 floor redleaves (programmer) reply to 2000-12-21 11:45:00 score 0

Let me give you an example:
For example, you wrote a header file "MOUSE." H "You used the STDIO when you wrote this library." H ". If you don't quote" STDIO "in your own header file. H "It is possible to compile an error. Of course, you can also not refer to the header file, but in the main program. But if someone uses your header file, it may not be" STDIO. " H ". At this point, if you do not quote, the program can not compile through. Top 7/F Zyoujie () reply to 2000-12-21 11:46:00 score 0

Agree to X86top related issues INI file role. Hosts file does not work high-grade low-level problem: vc++60 How to read a profile how to play a WAV file with a low-level audio function. How to play WAV files with low-level audio APIs. Low-level question: In Vs.net, how to compile C + + files. The low-level problem, my program can not find out for no reason. dcu file: In that download Apache installation files. Low-level problem: How to check if a file is under a folder ▲▲▲▲▲▲ for advice: Global.asa file role. Collection in 2009-05-12

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.