简体   繁体   English

是否有C ++预处理程序指令的在线手册?

[英]Is there an online manual of C++ preprocessor directives?

Is there a place where I can learn what all the different preprocessor directives in the C++ standard libraries do? 在哪里可以了解C ++标准库中所有不同的预处理器指令的功能? Like a site where it would break down all the different things you could do with math.h, conio.h, etc.? 就像一个站点,它将分解您可以使用math.h,conio.h等进行的所有不同操作?

I'm not sure if you really want to know about preprocessor directives, or about "what you can find in each standard header" (which are two very different things). 我不确定您是否真的想了解预处理器指令,或“在每个标准标头中可以找到什么”(这是两个非常不同的东西)。 For both questions, I would recommend getting a good C++ book or looking into online references . 对于这两个问题,我都建议您读一本不错的C ++书籍在线参考

I don't think there's a special section about preprocessor directives only, but the C++ standard defines what each standard include file must supply. 我认为没有关于预处理器指令的特殊章节,但是C ++标准定义了每个标准包含文件必须提供的内容。

If you prefer to avoid reading the whole standard, you'll find many informations about standard header files on the web, also on Wikipedia . 如果您希望避免阅读整个标准,则可以在Web上以及Wikipedia上找到许多有关标准头文件的信息。

Note a few things: conio.h is not standard, it's a microsoft extension, you won't find anything about it on the language standard. 请注意几件事: conio.h 不是标准的,它是microsoft的扩展,在语言标准上您找不到任何有关它的信息。 C++ header files inherited from C lose the suffix ".h" and gain a "c" at the beginning: math.h is cmath . 从C继承的C ++头文件失去后缀“ .h”,并在开头增加了“ c”: math.hcmath Many C++ native header files are the ones implementing Standard Template Library . 许多C ++本机头文件都是实现标准模板库的文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM