# Include & lt; iostream & gt; and # include & lt; iostream.

Source: Internet
Author: User

 

In the new C ++ standard, the method to generate a new header file is to remove. h from the existing C ++ header file name. For example, <iostream. h> is changed to <iostream>, <complex. h> is changed to <complex>. Use the same method for the C header file, but add a c before each name. Therefore, <string. h> of C is changed to <cstring>, <stdio. h> is changed to <cstdio>, and so on.

 

The old C ++ header file is officially opposed to use (specifically, it is not supported), but the old C header file is not (to maintain compatibility with C ).

 

The following is the current situation of the C ++ header file:

 

· The old C ++ header file names, such as <iostream. h>, will continue to be supported, even though they are not in the official standard. The contents of these header files are not in the namespace std.

 

· The New C ++ header file contains the same basic functions as the corresponding old header file, but the header file contains the content in the namespace std. (Some details of the library are modified during the standardization process, so the old header file and the object in the new header file do not necessarily correspond completely .)

 

· The Standard C header file is supported, as shown in <stdio. h>. The header file is not in std.

 

· The New C ++ header file with the C library function has a name such as <cstdio>. They provide the same content as the corresponding old C header file, but the content is in std

 

From youhaoxinqin's column

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.