范围分辨率算子??????? [英] scope resolution operator???????
问题描述
我们可以在C ???中使用范围解析运算符(::)
sushant
sushant写道:
我们可以使用范围解析运算符(:: )在C ???中
不,这是一个特定于c ++的kludge。
Erik
-
+ --------------------------------- -------------------------- +
Erik de Castro Lopo 没有**** @ mega-nerd.com (是的,这是有效的)
+ --------- -------------------------------------------------- +
对我来说,C ++似乎是一种牺牲了正交性的语言
和随意权宜的优雅。 - Meilir Page-Jones
sushant写道:我们可以在C ???中使用范围解析运算符(::)
这样做的唯一原因是访问命名空间的某些成员
或类 - 这两者都不是。您有什么应用程序?
-
Derrick Coetzee
th ******** @ rediffmail.com (sushant)写道:我们可以使用范围解析运营商(::)在C ???
No.
-
Keith Thompson(The_Other_Keith) ks***@mib.org < http://www.ghoti.net/~kst>
圣地亚哥超级计算机中心< *> < http://users.sdsc.edu/~kst>
我们必须做点什么。这是事情。因此,我们必须这样做。
hi ,
can we use scope resolution operator (::) in C???
sushant
sushant wrote:
hi ,
can we use scope resolution operator (::) in C???
No, that is a c++ specific kludge.
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo no****@mega-nerd.com (Yes it''s valid)
+-----------------------------------------------------------+
"To me C++ seems to be a language that has sacrificed orthogonality
and elegance for random expediency." -- Meilir Page-Jones
sushant wrote:can we use scope resolution operator (::) in C???
The only reason to do so would be to access some member of a namespace
or class - neither of which C has. What application did you have in mind?
--
Derrick Coetzee
th********@rediffmail.com (sushant) writes:can we use scope resolution operator (::) in C???
No.
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
这篇关于范围分辨率算子???????的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!