cc++中结构体(struct)知识点强化,链表的学习(国外英文资料).docVIP

  • 8
  • 0
  • 约2.09万字
  • 约 36页
  • 2017-06-27 发布于河南
  • 举报

cc++中结构体(struct)知识点强化,链表的学习(国外英文资料).doc

cc中结构体(struct)知识点强化,链表的学习(国外英文资料)

cc++中结构体(struct)知识点强化,链表的学习(国外英文资料) C/c++ structure (struct) knowledge point reinforcement, list of learning, 2007-05-26 23:17 In the last tutorial, we have briefly explained what the structure is, and for todays important learning point of learning structure, lets take a look at the list structure. The structure can be seen as a custom data type, it has a very important feature is the structure can be nested, but also has the condition, the structure can contain the structure pointer, but not including the structure variables in the structure. Struct test { Char name[10]; Float socre; Test *next; } / / this is correct! Struct test { Char name[10]; Float socre; Test next; } / / this is wrong! The use of this special structure characteristics, we can a ray structure generate a ring set, a pointer to another. The list of learning not that easy, many people learn here when they encounter difficulties, so many people and learn to give up, I said here, must not give up, it corresponds to learning we want to decompose the learning method is very important, understanding takes time, not necessary to own forced so tight, you have to do some of the most basic preparation work before learning, you must have the basic knowledge of heap memory understanding, there is a basic understanding of the structure, are the two important conditions, then the difficulty of learning can be decomposed easily grasp the contents of this section the. Below we give a complete program to create lists, whether read cannot read to the reader to seriously look, think, cannot read Never mind, because the decomposable tutorial I below, but the basic thinking must be done before, or even if I dont understand you is the decomposition the. The code is as follows. I make notes in the important part: Program / / Author: Guan Ning / / site: / / all manuscripts have copyright, if reproduced, please make sure the famous source and author #include iostream Using namespace std; Struct test { Char name[10]; Fl

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档