Registered CSDN for a few years, but never wrote anything. I was ignorant a few years ago, but now I am still ignorant but ok, I can understand what they say roughly.

This period of time a little doubt of life, because of my talent and learning shallow, so had to leave a little help small white level entry of the dry goods. Big touch do not spray!

Maybe my tutorial will be different from other tutorials, even can be said to be strange existence, but I hope to bring some help to the little white people.

Well, without further ado, most beginners will probably learn C as their first language. This is also the advice of most universities, and the network, I will follow the public, also from the C language. If I have a mistake, please point out, thank you!

Note: I use devC software, my opinion: this software is relatively easy for beginners to use, simple operation. A lot of people online are asking why not VS? And VC? In fact, if nothing else, simply saying that operation complexity is too high for beginners. Of course this is just my opinion, if you feel comfortable using VS, that’s fine. Just get used to it.

Our first section is a C language entry program =. = To be exact, say the entry program for most languages — “Hello world”!

Here is the code for our first program:

#include<stdio.h> #include<stdlib.h> int main(){ printf("Hello Wrold!" ); system("pause"); return 0; }Copy the code

Let’s run our code and see the following black box:



And what’s highlighted in red is the result of our run. Let’s check if this is the same code:

printf("Hello Wrold!" );Copy the code

Hello in the Wrold! Is the content of this string the same? Please write Hello word! Modify the content of ** single dog growl! (Yesterday valentine’s Day…) 支那

Printf (" Bachelor snarls!" );Copy the code

The running content is as follows:



Has the content changed

Note: Notice that the semicolon at the end of each line of code indicates the end of a line of code, just like the punctuation mark in writing, a period indicates the end of a sentence.

Printf (“”); So printf(“”) is just going to print, and we’re free to experiment, try to change the result; So the simple usage is clear, and this is just one of the simple uses of printf, but you already know what printf does.

Other unspecified code will be explained next!

The tutorials will continue to be updated