Dev c ++大胆的约定 [英] Dev c++ bold convention

查看:67
本文介绍了Dev c ++大胆的约定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人可以解释Dev C ++编译器用于决定

的规则是否将单词的显示转换为粗体?


首次尝试在答案可能是单词以粗体显示

他们在c ++中有指定的含义。


但是,这个答案没有工作得很好 - 主要没有得到

自动转换为粗体,也没有用于iostream等类的

流的单词。例如。当然,这样的话确实有

分配的含义。


谢谢。


Paul Epstein

Could anyone explain the rule the Dev C++ compiler uses for deciding
whether to convert a display of a word to bold font?

A first attempt at an answer could be "Words are displayed in bold when
they have an assigned meaning in c++".

However, this answer doesn''t quite work -- "main" does not get
converted automatically to bold, and nor do words for classes of
streams such as "iostream" for example. Surely, such words do have
assigned meanings.

Thank you.

Paul Epstein

推荐答案

pa **** *****@att.net 写道:
任何人都可以解释开发C ++编译器用于决定是否将单词的显示转换为粗体的规则字体?

答案的第一次尝试可能是当他们在c ++中具有指定的含义时,单词以粗体显示。

然而,这个答案并不是很有效 - 主要。不会自动转换为粗体,也不会对诸如iostream之类的流类进行说明。例如。当然,这些词确实具有意义。

谢谢。

Paul Epstein
Could anyone explain the rule the Dev C++ compiler uses for deciding
whether to convert a display of a word to bold font?

A first attempt at an answer could be "Words are displayed in bold when
they have an assigned meaning in c++".

However, this answer doesn''t quite work -- "main" does not get
converted automatically to bold, and nor do words for classes of
streams such as "iostream" for example. Surely, such words do have
assigned meanings.

Thank you.

Paul Epstein




这个关于特定IDE的问题在这个

新闻组中是偏离主题的,该新闻组关注C ++语言问题。试试一下

Dev-C ++特定的新闻组。另请参阅此常见问题解答:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9


干杯! --M


PS,我怀疑只有*保留* C ++中的单词才会突出显示。功能

和部分标准库(例如main,printf,cout)不具备
资格。



This question, which is about a specific IDE, is off-topic in this
newsgroup, which is concerned with C++ language issues. Try in a
Dev-C++-specific newsgroup. See also this FAQ:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

PS, I suspect only *reserved* words in C++ are highlighted. Functions
and parts of the standard library (e.g., main, printf, cout) don''t
qualify.


嗯,PS你的答案的一部分导致了

保留和非保留字之间的c ++区别。并且它还指出一些

单词具有不同的含义,如main然而,

没有保留。


以上两个事实是关于c ++语言的事实。然而,你要定义这句话的范围很窄。


通过类比,假设某人说我不明白......在...预订

c ++"。你是否会攻击那个人因为这个新闻组

只是关于c ++语言而不是关于c ++书籍?


如果新闻组允许基本问题[我的问题

当然是初级的],这是100%的主题,你错了

批评我的帖子。


然而,如果这里不允许初学者提问,那么,公平地说,我会立即纠正。


Paul Epstein

Well, the "PS" part of your answer leads to the c++ distinction between
reserved and non-reserved words. And it also points out that some
words which have distinct meanings like "main" etc. are nevertheless
not reserved.

The above two facts are facts about "the c++ language" however narrowly
you define the phrase.

By analogy, suppose someone says "I didn''t understand ... in ...book on
c++". Are you then going to attack that person because this newsgroup
is only about the c++ language and not about c++ books?

Provided that the newsgroup allows elementary questions [my question
was certainly elementary], it is 100% on topic, and you are wrong to
criticise me for my posting.

However, if beginner questions are not allowed here, then, fair enough,
mea culpa, I stand corrected.

Paul Epstein


< pa ********** @ att.net>在消息中写道

news:11 ********************** @ g47g2000cwa.googlegr oups.com ...
<pa**********@att.net> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
任何人都可以解释Dev C ++编译器的规则


这不是编译器那样做的,而是你的编辑器。

不一样用于判断
是否将单词的显示转换为粗体字体的东西。

第一次尝试答案可能是单词显示当它们在c ++中具有指定的含义时以粗体显示。


我认为这几乎就是答案。但请注意

函数名称(包括来自标准库的那些)

并不真正被认为是正确语言的一部分,

关键字如''if''和''for''。

然而,这个答案并不是很有效 - 主要不会自动转换为粗体,也不会对诸如iostream之类的流类进行说明。例如。


我认为你的意思是标准标题名称。名称本身

不是语言的一部分,而是标准库的一部分。

但我怀疑关键字''#include''以某种方式突出显示 ',

不是吗?

当然,这样的话确实有分配意义。
Could anyone explain the rule the Dev C++ compiler
It''s not the compiler doing that, but your editor.
Not the same thing.
uses for deciding
whether to convert a display of a word to bold font?

A first attempt at an answer could be "Words are displayed in bold when
they have an assigned meaning in c++".
I think that''s pretty much the answer. But note that
function names (including those from the standard library)
are not really considered part of the language ''proper'',
as are keywords such as ''if'' and ''for''.

However, this answer doesn''t quite work -- "main" does not get
converted automatically to bold, and nor do words for classes of
streams such as "iostream" for example.
I presume you mean standard header names. The names themselves
are not part of the language, but part of the standard library.
But I suspect the keyword ''#include'' is somehow ''highlighted'',
isn''t it?
Surely, such words do have
assigned meanings.




是的,但不是语言。


一些代码编辑和IDE提供了一个设施,你可以在这里添加你自己的b
''特殊''单词并为他们分配图形

特征(例如''粗体''或颜色)。如果您的情况属实,我不会知道。然而,

许多''语法高亮''编辑可用,免费和

商业广告。尝试网络搜索。


为了将来参考,请注意这样的问题不是

主题为comp.lang.c ++,仅供讨论

语言本身,而不是像编译器或编辑器那样的特定工具

。这就是为什么我用[OT]修改了你的
主题。


comp.lang.c的目的++:
http://www.slack.net/~shiva/welcome.txt


-Mike



Yes, but not by the language.

Some code editors and IDE''s offer a facility where you can
add your own list of ''special'' words and assign graphical
characteristics (e.g. ''bold'' or color) to them. I don''t
know if this is the case with yours. However there are
many ''syntax highlighting'' editors available, both free and
commercial. Try a web search.

For future reference, note that issues like this are not
topical for comp.lang.c++, which is only for discussion
of the language itself, and not about specific tools such
as compilers or editors. This is why I''ve modified your
subject line with [OT].

Purpose of comp.lang.c++ :
http://www.slack.net/~shiva/welcome.txt

-Mike


这篇关于Dev c ++大胆的约定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆