文件名称:jiegouyulianhe
-
所属分类:
- 标签属性:
- 上传时间:2015-11-20
-
文件大小:26.4kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
在实际问题中,一组数据往往具有不同的数据类型。例如, 在学生登记表中,姓名应为字符型;学号可为整型或字符型; 年龄应为整型;性别应为字符型;成绩可为整型或实型。 显然不能用一个数组来存放这一组数据。 因为数组中各元素的类型和长度都必须一致,以便于编译系统处理。为了解决这个问题,C语言中给出了另一种构造数据类型——“结构”。 它相当于其它高级语言中的记录。-In the actual problem, a set of data tend to have different data types. For example, in the student registration form, name should be character Student id for integer type or character Age should be integer Sex should be character For integer or real. Obviously can t use an array to store a set of data. Because of the type and length of each element in the array must be consistent, so that the compiler system processes. In order to solve this problem, C language is given another structure data type, structure . It is equal to the record of other high-level languages.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
结构与联合.docx
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.