gpt4 book ai didi

c++ - C++ 源文件中的不可打印 (0xFF) 字节

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:21:55 25 4
gpt4 key购买 nike

这个特定的 C++ 代码项目有 0xFF 字节标记,作为函数定义的前缀。

这样做的目的是什么?它是为了帮助一些简单的源文件解析器吗?

显然编译器忽略了这些标记。

Strange character appearing in C source file

最佳答案

那可能是Form Feed (ASCII 12) (on wiki-pedia) ,换句话说,一个空白字符。

The form feed character is sometimes used in plain text files of source code as a delimiter for a page break, or as marker for sections of code. Some editors, in particular emacs, have built-in commands to page up/down on the form feed character. This convention is predominantly used in Lisp code, and is also seen in Python source code.

当源代码通常打印在纸上以供审查/存档时,它在源代码中很常见。

打印会将纯文本文档中的 FF 解释为“分页符”

半相关:https://twitter.com/sehetw/status/297904888321544192

关于c++ - C++ 源文件中的不可打印 (0xFF) 字节,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14893141/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com