Each elder ten lines of code below represent what mean? Why not enter the system (" pause "); Can run the code generation results?
CodePudding user response:
The first line contains the standard output input stream header file The second exercise with namespace The fourth row, the main function Line 5 braces said the following content in the main function Line 6 output hello world and line breaks Line 8 to pause press any key to run the main is to see the result whether can run normally End of line 9 return value of 0 indicates the main function The first ten lines of the curly braces said the above content in the main function The first line 124590 is basic format
CodePudding user response:
This program is mainly in the console print a hello world What is the meaning of each line of code, to make your own introduction to this book, System (" pause "); Just for the sake of the program runs after the end of the console does not directly closed out, wait for the user press any key to close out, use the IDE executes this code dispensable also can set (of course), but the real compiled into an executable file, no such a code word, program will be a flash, no effect, because the program is running too fast, suddenly pulled out of the closed end of picture),