As follows, if you use the old input and output streams to compile, you will find an error
sample code
After compiling, you will find that you are reporting "cout": similar errors for undeclared identifiers
At this time, the following modifications can be made
1. Change the #include <iostream.h> non-standard input and output stream to the standard input and output stream of #include <iostream>
2. Add the content in quotation marks "using namespace std;" at the beginning to use the standard namespace
After making the above two modifications, the compilation can pass