北京大学计算概论课件第十五讲 结构体.pptVIP

  • 12
  • 0
  • 约3.58千字
  • 约 34页
  • 2019-05-06 发布于广东
  • 举报

北京大学计算概论课件第十五讲 结构体.ppt

Lesson 15 Structures Hu Junfeng 2007/11/21 Objectives Single Structures Structure operations Arrays of Structures Passing and Returning Structures Case study: sort by index Case study: search by index Structure: introduction Structure: a group of variables gather together, got one name, often used to describe different features of one object For Example: struct Person { char name[80]; int height; int weight; }; Structure: exp1a Define a structure Declare variables of the structure Structure: exp1 Structure operations Valid Operations Assigning:

文档评论(0)

1亿VIP精品文档

相关文档