在Standard Pascal中,什么是简单类型?这些是唯一可以从函数返回的类型吗?
发布于 2010-05-04 01:08:28
according to the spec、简单类型有整数、实数、布尔值、字符、枚举((red, yellow, green, blue, tartan))和子范围(1..100)。also according to the spec,函数只能返回simple-type-identifier或(|) pointer-type-identifier。
发布于 2016-10-10 09:46:00
pascal中的简单类型,
用于数字的整数,
用于浮点的real,
字符表示字符,
真值的布尔值,和
文本的string
这是在pascal中可以使用的基本类型,并且所有这些类型都可以从函数中返回
https://stackoverflow.com/questions/2759562
复制相似问题