这个特定的 C++ 代码项目有 0xFF 字节标记,作为函数定义的前缀。
这样做的目的是什么?它是为了帮助一些简单的源文件解析器吗?
显然编译器忽略了这些标记。
最佳答案
那可能是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
解释为“分页符”
关于c++ - C++ 源文件中的不可打印 (0xFF) 字节,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14893141/