Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
標準パスカルでは、単純型と見なされるものは何ですか? 関数から返される型はこれらだけですか?
仕様によると、単純型はinteger、real、Boolean、char、enumerated((red, yellow, green, blue, tartan))、およびsubrange(1..100)です。また、仕様によれば、関数はsimple-type-identifierまたは(|)のみを返すことができpointer-type-identifierます。
(red, yellow, green, blue, tartan)
1..100
simple-type-identifier
|
pointer-type-identifier
パスカルの単純型、
数値の場合は整数、
浮動小数点の場合は実数、
文字のchar、
真偽値のブール値、および
テキストの文字列
これはパスカルで使用できる基本的な型であり、それらはすべて関数から返すことができます