Redian新闻
>
苹果中国官司现在爆多
avatar
苹果中国官司现在爆多# Apple - 家有苹果
c*s
1
听来的一道c++题,大家看看
class A{
public A(int t){};
};
void f1(A a){...}
void f2(A& a) {...}
void f3(const A& a) {...}
下面的函数调用,哪些能工作,哪些不能,为什么?
f1(5);
f2(5);
f3(5);
avatar
w*2
2
除去唯冠的官司和要求买一赔二的ipad 假冒,还有下面这个:
。中国作家维权联盟昨日向北京市第二中级人民法院递交了起诉书,对苹果公司发起第
三轮侵权诉讼,指控苹果APP Store在未经作家许可的前提下,销售韩寒等多位作家的
作品,26部作品索赔金额达1100多万。http://t.cn/zOUV5vh
这种书的或者杂志的app 的确是有版权问题的。
avatar
j*i
3
f3 不行吧 有2次type conversion

【在 c****s 的大作中提到】
: 听来的一道c++题,大家看看
: class A{
: public A(int t){};
: };
: void f1(A a){...}
: void f2(A& a) {...}
: void f3(const A& a) {...}
: 下面的函数调用,哪些能工作,哪些不能,为什么?
: f1(5);
: f2(5);

avatar
f*5
4
这个很悠久了,看贝志诚的微博就知道了。他是代表。

【在 w********2 的大作中提到】
: 除去唯冠的官司和要求买一赔二的ipad 假冒,还有下面这个:
: 。中国作家维权联盟昨日向北京市第二中级人民法院递交了起诉书,对苹果公司发起第
: 三轮侵权诉讼,指控苹果APP Store在未经作家许可的前提下,销售韩寒等多位作家的
: 作品,26部作品索赔金额达1100多万。http://t.cn/zOUV5vh
: 这种书的或者杂志的app 的确是有版权问题的。

avatar
P*e
5
g++试了一下,一三可以,二不行。。。
我一开始也觉得三不行。。。

【在 c****s 的大作中提到】
: 听来的一道c++题,大家看看
: class A{
: public A(int t){};
: };
: void f1(A a){...}
: void f2(A& a) {...}
: void f3(const A& a) {...}
: 下面的函数调用,哪些能工作,哪些不能,为什么?
: f1(5);
: f2(5);

avatar
w*2
6
搜了下贝志诚,没发表微薄压?
link?

【在 f*******5 的大作中提到】
: 这个很悠久了,看贝志诚的微博就知道了。他是代表。
avatar
c*s
7
是啊,我在vs试也是一样的结果。

【在 P*******e 的大作中提到】
: g++试了一下,一三可以,二不行。。。
: 我一开始也觉得三不行。。。

avatar
c*e
9
f2 need a reference as input.
avatar
g*j
11
f1() is fine since the constructor is not explict. If you declare
explict A(int t){}
f1(5) will not work.
void f2(A& a) takes a non-const parameter, but in f2(5), the parameter is a
constant. It's invalid to convert a const to a non-const.
f3(5) is fine. If you declare
explicit A(int t) {}
f3(5) will not work.

【在 c****s 的大作中提到】
: 听来的一道c++题,大家看看
: class A{
: public A(int t){};
: };
: void f1(A a){...}
: void f2(A& a) {...}
: void f3(const A& a) {...}
: 下面的函数调用,哪些能工作,哪些不能,为什么?
: f1(5);
: f2(5);

avatar
f*5
12
是的

【在 w********2 的大作中提到】
: 这个是那个以前铊杀案里的那个小贝么?
avatar
a*l
13
f3(5)行,f2(5)不行的原因在more effective c++有提到过。
如果define int i=5, 再call f2(i)还是不行,所以不是由于parameter is a const.
f2(A& a) expects a reference which means "a" may be modified in the function
, but f2(5) or f2(i) will create a temporary object of type A. The
modification will occur on the temporary object and it is not what the
programmer expected. "Implicit type conversion for references-to-non-const
objects, then, would allow temporary objects to be changed when programmers
expected non-temporary objects

【在 g***j 的大作中提到】
: f1() is fine since the constructor is not explict. If you declare
: explict A(int t){}
: f1(5) will not work.
: void f2(A& a) takes a non-const parameter, but in f2(5), the parameter is a
: constant. It's invalid to convert a const to a non-const.
: f3(5) is fine. If you declare
: explicit A(int t) {}
: f3(5) will not work.

avatar
w*2
14
去支持了一把
这个方面我一直觉得苹果的app store 管的太松。

【在 f*******5 的大作中提到】
: 是的
avatar
f*5
15
顺道摆看aikantube.com的ipad用户一刀?哈哈

【在 w********2 的大作中提到】
: 去支持了一把
: 这个方面我一直觉得苹果的app store 管的太松。

avatar
w*2
16
lol. good to know this site.
I personally think apple business model looks evil but clean, google
business model looks "not evil", open and free but dirty. app store did
approve those unauthorized ebooks deserve to pay some price. same thing
should happen to google..

【在 f*******5 的大作中提到】
: 顺道摆看aikantube.com的ipad用户一刀?哈哈
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。