C language 1

Source: Internet
Author: User

I am a freshman in freshman, I did not play computer before entering the university, what is the program? The composition of the computer has no slightest impression. Now is a big semester, I have wasted half a year to understand what I learned in college this half-year what is the thing? How should I learn? How am I going to get what I learned to make money? I asked my mentor, and she didn't tell me what I needed. So now I'm still confused about my future. But I think the tutor said a word must be correct. It is the university to learn C, I will be useful life. This is my essay, one is to hope that their knowledge has a systematic summary, and the second is to see this essay you can give me a little guidance. Help me identify the road.

1, #include <stdio.h> is probably the first beginner novice to understand it. All I know here is that stdio.h is a header file. I understand the header file is a parcel, inside some predecessors summed up the "clothes" inside. When I wrote this statement, I opened the parcel and I used the "clothes" in the back of the programming process. According to my mentor, this statement is to copy the knowledge of predecessors into your source file.

2,main function In my impression is like the Buddha in the journey to the monkey. He is a man of great connotation. The book above, no matter how many functions in the source file, the main function only this one, from the side, without him, no more functions are useless. Yes, no Buddha, where did Dover come from?

3,PRINTF is also a function, obviously it is I said in the package inside the "clothes", he is the tube output, which is what you write in the printf function, will be left intact in your black and White dialog box display, with my current insight to see that he has two common places. The first is that printf ("Please enter two integers separated by a space number") is the use of a reminder. The second one is printf ("%d", X), and the purpose of the output results.

4,SCANF and printf are things in a package, but the style of "clothes" is different. For example, you want to calculate how much a+b equals. You have to tell the computer who your A and B are. Like a=3,b=4. You know, but the computer does not know, you say to it loudly a=3,b=4, you see it to you? Here, scanf is working, and with it, you can talk to your computer. It's in the form of a special scanf ("%d", &x); Do not forget, "&" This symbol, I have a lot of classmates write the program will lose it.

5,return 0; is a program of the concluding sentence, why should have it, I still do not understand, but I know a function without it, is unable to output the correct result.

6,void is a parenthesis in the back of the main thing, my eldest brother said it is an empty pointer, alas, until I learned the pointer to say it.

Well, this is my first lesson. Knowing these six things, you can output something.

#include <stdio.h>

int main (void)

{

printf ("Helloword");

return 0;

}

C language 1

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.