【问题标题】:Pascal Simple Types帕斯卡简单类型
【发布时间】:2010-05-03 16:32:02
【问题描述】:

在标准 Pascal 中,什么是简单类型?这些是唯一可以从函数返回的类型吗?

【问题讨论】:

    标签: pascal


    【解决方案1】:

    according to the spec,简单类型是整数、实数、布尔值、字符、枚举 ((red, yellow, green, blue, tartan)) 和子范围 (1..100)。 also according to the spec,函数只能返回 simple-type-identifier 或 (|) pointer-type-identifier

    【讨论】:

      【解决方案2】:

      pascal 中的简单类型,

      整数表示数字,

      real 表示浮点数,

      char 表示字符,

      boolean 表示真值,

      字符串用于文本

      这是pascal中可以使用的基本类型,都可以从函数中返回

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-10-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多