C + + header file has H and no h difference

Source: Internet
Author: User

Can be used directly cout but in iostream, it is defined in the namespace STD, so you must add using namespace std to use cout generally a C + + old with ". h" extension of the library file, For example Iostream.h, in the new standard after the standard library has a non-". h" extension of the corresponding, the difference in addition to many of the latter's improvements, there is one thing is the latter is crammed into the "Std" namespace.

But the string is special.  The problem is that C + + is compatible with the standard library, and C's standard library also happens to have a header file called "String.h", which contains some commonly used C string processing functions, such as the strcmp mentioned by the landlord. This header file has nothing to do with the C + + string class, so it is not an "upgrade version", they are two header files that have no relationship.


C + + header file has H and no h difference

Related Article

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.