CPP learning notes 1 a simple small program and some knowledge points

Source: Internet
Author: User
The cpp I bought today has been re-learning CPP since today. Now I find that the books published by the school are not exactly the same.
<Em> # include <stdio. h> // pre-processing command int main ()/* The first called function can be compared to a house door (), which indicates that main is a function. int indicates the type of the returned value */{int num;/* declaration statement. It declares two things. One variable named num and the other variable named int indicates that the life variable is an integer. Int Is a keyword. Num is a identifier */num = 1; // assign printf ("I am simple") to the variable. // call the printf function. () parentheses indicate that printf is a function name. Main calls the printf function string as the function parameter printf ("computer"); printf ("WY favority number is % d", num); Return 0; // Return Statement} // The curly arc indicates the boundary of the main function. </em>

Below are some small knowledge points

Features of a C Language

1 portability

2. Powerful functions and flexibility

3 For programmers

Basic Principles of the second computer

Commands-translation commands-execution commands-storage commands

Human-Computer Interaction Process: User-application software-Operating System-hardware equipment

Step 7 of C language application

1. Define the program objectives

2. Design Procedure

3. write code

4. Compile

5 testing and debugging

6. Maintain and modify programs

7. Conclusion


CPP learning notes 1 a simple small program and some knowledge points

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.