Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
来自n3242(即C++11)
2.12关键字
n1256 (C99)
A.1.2 关键字的替代表示
From n3242 (ie C++11)
2.12 Keywords
From n1256 (C99)
A.1.2 Keywords
来自 cppreference。 com
来自维基百科
格式化这个很有趣。
from cppreference.com
from wikipedia
Formatting this was fun.
感谢您的所有答案和评论,但仅仅列出关键字并不完全是我问题的目的。尤其,
显然被忽视了。但在起草编码指南时,您始终需要给出每个限制的理由。
这就是为什么我开始收集自己的数据并将其放入文档中。我还在努力,特别是1995年对C90标准的AM1修订没有完全包含在内,对于C++仅使用了最新的C++11标准(部分),一些技术报告仍然需要包含等等。但是由于工作量的原因,我目前没有进行太多更新,因此我在我的网站上放置了一个草稿版本以供下载。
如果您有兴趣,请查看此处:C 语言中的保留字 (pdf)。
欢迎补充和更正,联系信息在我的网站上。
FWIW。
Thanks for all the answers and comments, but simply having a list of keywords was not quite the intention of my question. Especially,
has apparently been overlooked. But when drafting a coding guideline, you're always required to give a rationale for each restriction.
That's why I've started to collect my own data, and put it in a document. I'm still working on it, especially the AM1 amendment to the C90 Standard in 1995 is not fully included, for C++ only the latest C++11 Standard has been used (partly), several Technical Reports still need inclusion, etc. But since I'm currently not pursuing many updates because of workload, I've put a draft-version for download on my website.
If you're interested, look here: Reserved Words In C (pdf).
Additions and corrections are always welcome, contact info on my website.
FWIW.
C11有新关键词。其中一些是_Alignas、_Alignof。
您可以在 http://www.sdlczone.com/complete 找到完整列表-c-关键字列表/
C11 has new key words. Some of them are _Alignas, _Alignof.
You can find the complete list at http://www.sdlczone.com/complete-list-of-c-keywords/