delphi 枚举类型_Delphi的序数和枚举数据类型

delphi 枚举类型

Delphi's programming language is an example of a strongly typed language. This means that all variables must be of some type. A type is essentially a name for a kind of data. When we declare a variable, we must specify its type, which determines the set of values the variable can hold and the operations that can be performed on it.

Delphi的编程语言是强类型语言的示例。 这意味着所有变量必须为某种类型。 类型本质上是一种数据的名称。 声明变量时,必须指定其类型,该类型确定该变量可以保存的一组值以及可以对该变量执行的操作。

Many of Delphi's built-in data types, such as Integer or String, can be refined or combined to create new data types. In this article, we'll see how to create custom ordinal data types in Delphi.

Delphi的许多内置数据类型(例如Integer或String )可以进行优化或组合以创建新的数据类型。 在本文中,我们将看到如何在Delphi中创建自定义序数数据类型。

序数类型 ( Ordinal Types )

The defining characteristics of ordinal data types are: they must consist of a finite number of elements and they must be ordered in some way.

序数数据类型的定义特征是:它们必须由有限数量的元素组成,并且必须以某种方式排序。

The most common examples of ordinal data types are all the Integer types as well as Char and

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值