c#中的“#"是什么意思? [英] What is the meaning of '#' in c#?
本文介绍了c#中的“#"是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
c ++来自c,是通过向c中添加++来实现的,因为c ++使用增量运算符++.
那为什么为什么他们没有用C#代替C#++呢?
我在Google中搜索,但没有解决方案...
c++ came from c by adding ++ to c as c++ uses an increment operator ++.
Then why instead of C# they didn''t give it as C+++?
I searched in google but there was no solution for that...
推荐答案
找到它 ^ ]
名称"C锋利" 是受音乐符号启发的地方,其中的尖声表示应将音符调高半音. br/>
这类似于C ++的语言名称,其中"++"表示变量应加1.
由于显示器的技术局限性(标准字体,浏览器等),并且标准键盘上没有清晰的符号(U+266F ♯ music sharp sign (HTML: ♯))
,因此出现了数字符号(U+0023 # number sign (HTML: #))
选择以编程语言的书面名称表示尖锐的符号.
此约定反映在ECMA-334 C# Language
规范中.
但是,在实际可行的情况下(例如,在广告或美术中),Microsoft使用预期的音乐符号.
Found it on Wiki[^]
The name "C sharp" was inspired by musical notation where a sharp indicates that the written note should be made a semitone higher in pitch.
This is similar to the language name of C++, where "++" indicates that a variable should be incremented by 1.
Due to technical limitations of display (standard fonts, browsers, etc.) and the fact that the sharp symbol(U+266F ♯ music sharp sign (HTML: ♯))
is not present on the standard keyboard, the number sign(U+0023 # number sign (HTML: #))
was chosen to represent the sharp symbol in the written name of the programming language.
This convention is reflected in theECMA-334 C# Language
Specification.
However, when it is practical to do so (for example, in advertising or in box art), Microsoft uses the intended musical symbol.
名称"C sharp"是受音乐符号启发的其中尖锐的文字表示应将音符制成音调较高的半音.这类似于C ++的语言名称,其中"++"表示变量应加1 .
The name "C sharp" was inspired by musical notation where a sharp indicates that the written note should be made a semitone higher in pitch. This is similar to the language name of C++, where "++" indicates that a variable should be incremented by 1.
亲爱的,
C#在这里被称为"C Sharp".#"表示"Sharp",表示该语言工作迅速,易于学习且易于理解的代码....
Hi Dear,
C# is called "C sharp" here ''#'' means ''Sharp'' that denote this language working fast, learning easily and easy understandable code....
这篇关于c#中的“#"是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文