“#”是什么?帕斯卡的符号?

发布于 2024-09-04 15:52:50 字数 80 浏览 8 评论 0原文

例如:

x := #123;

我尝试在谷歌上搜索,但我根本不知道这意味着什么。

For example:

x := #123;

I tried to search around Google but I simply have no idea what this means.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

|煩躁 2024-09-11 15:52:50

IIRC 它表示数字的字符值(例如#32 -> 空格)。

IIRC it means a character value of the number (eg. #32 -> space).

野鹿林 2024-09-11 15:52:50

#123 是序数值123 的字符(Char 类型)。

#123 is a character (Char type) of the ordinal value 123.

挽梦忆笙歌 2024-09-11 15:52:50

这是字符代码。 #97 相当于 'a' 等

图表可以在此处查看。

It's character code. #97 is equivalent to 'a' etc etc

A chart can be see here.

亽野灬性zι浪 2024-09-11 15:52:50

它是标准 Pascal 的扩展,Borland Pascal 接受井号 ('#') 后紧跟一个 0 到 255 之间的十进制数作为该代码的单个字符。

It is an extention to standard Pascal, Borland Pascal accepts the pound sign ('#') followed immediately by a decimal number between 0 and 255 as a single character with that code.

九命猫 2024-09-11 15:52:50

正如其他人提到的那样,它是一个字符代码,我最常看到它们用于消息中的换行符,或其他控制字符,例如 Tab (#9)

ShowMessage('Error:'#13#10'Something terrible happened')

奇怪的是,没有必要连接涉及这些的字符串。

As other have mentioned it's a character code, I most often see them used for line breaks in messages, or other control character such as Tab (#9)

ShowMessage('Error:'#13#10'Something terrible happened')

Strangely it's not necessary to concatinate a string involving these.

谁的新欢旧爱 2024-09-11 15:52:50

这是字符代码。 #97 相当于 chr(97) 等等

It's character code. #97 is equivalent to chr(97) etc etc

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文