13th time Assignment

Source: Internet
Author: User

1. The knowledge points learned in this lesson:

(1) Like arrays and pointers, structs are also a construction data type, which differs from arrays in that the data types of all elements in an array must be the same, and the data types of the members in the structure can be different.

(2) struct structure name {

Type name struct member name 1;

Type name struct member name 2;

···

Class name struct member name N;

};

A struct is a keyword that defines a struct type, and after a struct, it names itself a struct, which must be a valid identifier.

(3) The keyword struct is combined with the struct name that follows it to form a new data type name. The definition of a struct ends with a semicolon, because the definition of a struct is treated as a statement in the C language.

(4) When you define a nested struct type, you must define the structure type of the member, and then define the main structure type.

(5) There are three ways to define structure variables in the C language:

1, separate definition: Define a structure type, and then define the variables of this type of structure.

2. Mixed definition: Define structure variables while defining struct types.

3. No type name definition: Omit the struct name when defining the structure variable.

(6) A structure pointer is a pointer to a struct-type variable.

(7) Through the example "Student achievement file Statistics" leads to the basic concept of the document and the main knowledge points, the realization of a pre-prepared student performance information from the disk file height data to the computer memory and display in the screen, indicating that the C language program can achieve the access to the file function.

2. The problems encountered during the experiment and the solutions:

This, don't say more ...

In fact, there are a lot of things not clear, but still rely on more than ask to learn more practice.

3. Experience of experiment and summary of the study in this chapter:

Oh oh oh, the last class, but also a little sad, after the test feeling a lot of ease, but also deeply feel that they are not enough efforts, to the end did not adjust the status back.

13th time Assignment

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.