Number of sub-domains & #183; C Language -- hello world, helloworld

Source: Internet
Author: User

· 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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.