Number of children · C Language--hello World

Source: Internet
Author: User

Say hello world and you'll know what I'm going to do, after all, Hello World is basically the first case in every high-level language.

OK, cut to the chase, we started writing Hello world! in C.

First, open the C language IDE (integrated development environment), I use vc++6.0, for reasons, after all, exam needs, but also suitable for beginners. (For beginners to get the most out of it, review the code and have it on the naked eye.) )

Second, select Close, click on the top left corner of the file-new, Pop-up dialog box

Third, select the Project WIN32 Console Application (console application under 32-bit Windows), and then give the input a name, for example I entered "text", click OK

Four, then will pop up the dialog box, select an empty project (this is the default), click Finish directly

Create a new one, select the C + + Source file in the files, and select Add to Project (select the text project that you built earlier), and then enter the file name for example: Hello World.cpp (be sure to write. cpp, which is used to identify this is a C language file instead of a C + + file), Click OK

Six, the edit box will be displayed, in the edit box to enter the contents of the picture, the figure is as follows

Then, click the icon button in left-to-right order (execute with build, build, and so on)

Eight. When you click the first and second buttons, the IDE prompts you to write them incorrectly for the post-build prompt

Nine, click the last button (execute), will pop up the console, content such as

Finally, let us explain in detail the meaning of the previously written code (//For single-line comments,/*......*/for multiline comments)

Number of children · C Language--hello World

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.