C Quick Start Series - Installation of Development Environment


Introduction to this tutorial series.

C As a required course for college programming or computer science majors, putting many beginning programmers

It's all difficult and feels like there's no way to get started, and this set of tutorials was created for that purpose. The tutorial will take the Introductory C

of the core content to do a purification of key knowledge points, remove some generalized nonsense, with a mind map with classic examples that

I believe it will get beginners up to speed with the C language. Also the author has only studied the basic C stuff in college.

Not being a pro, if there are any mistakes in this tutorial, feel free to point them out, much appreciated!

Learning Roadmap for this section

1.The relationship between computers and programming languages

A: A computer consists of a hardware and software system, with the hardware providing the physical basis

Software, on the other hand, is the soul of a computer; without it, a computer is just a

Naked machines that can't do anything; they can be compared figuratively to a human big brother and a body, one without the other.

2.Updating of programming languages

3.Features of the C language

Pros.

1.Clean code and high flexibility.

2.Simple and easy to understand language.

3.Generating target code of high quality and efficiency.

4.Allow direct access to physical addresses and manipulate hardware.

5.Better portability.

Disadvantages.

1.Encapsulation of data, which is highly flawed in terms of security.

2.(a) For string processing, which can only be achieved by means of self-negative arrays, drawing operations are complex.

3.Weak type checking mechanisms and lack of language structures to support code reuse.

4.The first Hello World program

#include

int main()

{

printf("Hello World! ");

return 0;

}

Here it is enough to know that the above paragraph will output Hello World, when you learn the following compiler

It's for use, so knock the code out again on your own, don't just copy and paste it, you can't necessarily write it if you can read it, just follow the

Write it out right, then others view it, knock it over yourself, programming cut the eyes out!

5.Compiling and running C programs

Explanation.

1.When we write the code on the compiler, the file will be Hello.c, .c is the suffix of the C program source code,

The program at this point is called the source program! I recommend a learning C language / C++ learning skirt [ six two seven, zero one two, four six four ], whether you are a big cow or white, is to switch or want to enter the industry can come to understand together with progress together with learning! There are dev tools in the skirt, lots of dry and technical material to share!

2.When the program is compiled by the compiler, a target program (a binary code file) is generated.

3.Link the target program and library files into a machine code file, which is the exe executable!

4.Click Run and output the results!

6.Use of IDE development tools

PS: These two IDEs are rather old-fashioned, but this is still used in many school classes.

And you don't need to get that complicated when you're just getting into programming, so you can use Visual Studio when you're familiar with it.

Code::Blocks and other development tools, good steel to use, the current immediate need is to learn the C language

And don't spend the time cost on familiarizing yourself with IDE.

Just choose between VC++ 6.0 and C Free

Notes.

For some colorful game codes like Tetris or Gluttony online, you usually need to use

graphics.h graphics library, which is provided by Turbo.c, can be run directly on VC++ 6.0 if

is going to report an error! All you need for this is to install an EasyX library and choose the VC6 version to install!

VC++ 6.0 Full Green Edition

Step 1:Click the icon of vc++6.0 to enter the coding interface:

Step 2: Click File,New,the following dialog box will pop up

Step 3: Write the code

Step 4: The code is written, then you have to compile and run it, click these two buttons in turn

Tips: The two corresponding shortcuts are ctrl + f7 and crtl + f5

Step 5: Here it is not running because there is an error, when we click compile

The following console will show this error:

Here it shows that the program has an error, 0 warnings, it won't run if there's an error, it will still run if there's a warning!

We will find the error message by scrolling the mouse wheel up.

This sentence says the obvious, and we know it's missing the semicolon, and double-clicking on the line brings us to the point where the code goes wrong, the

Just add the semicolon after this statement where the semicolon is missing and you're done!

Step 6: compile again, prompt no errors and warnings, click the Run button, pop-up the output window (console)

C-Free5

Step 1: Click the icon on the desktop after installation

Step 2: Once you enter, you can see a prompt box to view the recently written code.

Or just create a new blank file, which is more user-friendly compared to VC6

Step 3: You can just create a new blank file here, or you can go in and create it when you

After clicking off to enter, Click on the file===> New to create a new file

Step 4: Just write the code in the edit area, in addition, C-Free 5 provides the prompt input function.

For example, when you type some character set in C, it will give the corresponding prompt, such as printf, and when you type pri it will prompt that

Check, enter automatically completes.

Step 5: After saving the code, compile and run

Step 6: We deliberately leave out the semicolon after printf() to see what error is indicated:

Step 7: Double click Error to the error location and add on ; Compile and run again

Step 8: Output results


Recommended>>
1、What the Stanford report says about AI that you didnt know and more for financial practitioners
2、Visualizing the R Language ⑩ Coordinate System Catalog
3、Quicksilver using AI technology to fix problems with Encyclopedia
4、BaseRecyclerViewAdapterHelper
5、Tencent cloud access domain name change filing information process record

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号