Hello World and standard output
July 14, 2019 Sunday
<Preface: Woodpecker ape mother wanted to teach students to learn programming this thing has been hanging in the mouth for several days. Woodpecker is also in high spirits, but because of 996 apes mom always cheesed off at home a variety of more sleep look. Choose a day as collision, today, ape mother finally agreed to teach. . .
First, Baidu search for "novice tutorial" to open the C ++ sections: https://www.runoob.com/cplusplus/cpp-tutorial.html
include
using namespace std;
int main()
{
cout << "Hello, world!" << endl;
return 0;
}
This code is output in a text on the screen, Hello, world (hello, world)
Woodpecker to run a little, very happy to see the print out texts
Then ape mom, delete, play their own hands once, and then see if it is successful
Woodpecker immediately took pen and paper and quickly copy down, and then tap the keyboard awkward fingering complete the input (ignoring various input error here)
Finally, click Run, sure enough, running incorrect report
Ape mother pointed to a line on the screen, said output
Here is a look at Error, there is an error, a program error has stopped working
Also it refers to the following line to say, look here Warning, illustrate the alarm, the alarm is not so important error
Woodpecker on the shining line number of errors and alarms and found that there is a place less a semicolon
Ape mom, C ++ language which is to mark the end of a sentence by a semicolon, no wrong
Woodpecker students modified to run again find success
so happy!
Woodpecker whim, again Hello, world! Replaced by Run away, also a success
Appears on the screen the Run away
That it into Chinese, Hello, world! Can, ha ha
This is the first lesson, my mother the next lesson will teach me? Woodpecker students are looking forward to think. . .