| 
 | 
and also 
The difference between #include<iostream.h> and <iostream>? ? ? ? ? ? ? ? ? ? ? ? ? ? 
 
------------------------------- 
 
c is a function library, mainly there are some practical functions. When c++ is compatible with c, it also retains the standard library of c. That is 
The c++ standard library also includes the c standard library. The newly added c++ are generally class libraries, such as io and string, which are class-centric 
At the same time, C++ also includes a standard template library, which is a data structure written with templates. 
 
The name of the c standard library in the c++ standard is changed like this: 
xxxx.h ----> cxxxx 
Such as: 
stdio.h ----> cstdio 
 
 
The newly-added c++ library is in line with the standard and outdated (libraries that existed before the standard was established for c++). 
xxxx.h ---> xxxx 
Such as: 
iostream.h ---> iostream 
 
In general, there is no end of .h. The c library needs to add the beginning of c. 
 
All C++ standard libraries are included in the std namespace. The usage of the namespace is: 
std::xxxx 
Kind of similar to calling class members. 
You can also import the entire namespace at once: 
using namespace std; 
xxxx 
There is no need to use the prefix std:: to quote. |   
 
 
 
 |