· C Language -- hello world, helloworld
After talking about hello world, you must know what I want to do. After all, hello world is the first case in every advanced language.
Well, let's get into the question. We started to write hello world in C!
I. Open the C language IDE (integrated development environment) and I am using VC ++ 6.0. The reason is that, after all, the exam is required and suitable for beginners. (This allows beginners to understand that code review depends on the naked eye .)
2. Select close and click File> new in the upper left corner. A dialog box is displayed.
3. Select the Win32 console application in the project (a 32-bit Windows console application), and enter a name for it. For example, if I enter "text", click OK.
4. In the displayed dialog box, select an empty project (which is the default one) and click Finish.
5. Create a new one, select the C ++ Source File in the File, and add it to the project (select the text project created earlier), and enter the File name, for example, hello world. cpp (must be written. cpp, which is used to identify this is a C language file rather than a C ++ file), click OK
6. the edit box is displayed. Enter the content in the graph in the edit box, as shown in the following figure.
7. Then, click the icon in the order from left to right (compile-> build-> execute)
8. When you click the first and second buttons, the IDE will prompt you if the writing is incorrect.
9. After you click the last button (execute), the console is displayed. The content is shown in figure
10. Finally, Let's explain in detail the meaning of the code written earlier (// a single line comment ,/*...... */Comments for multiple rows)