n******m 发帖数: 169 | 1 你的文章没有解决我的问题哦。。。
我的问题实际上是 a=1 这句话干了些什么:是(1)还是(2)呢?
(1)调用了 A(1), 生成a.
(2)调用了A(1), 生成了一个temporary object, 然后 “=”调用了copy constructor,
把temporary object 复制给a.
如果是(1),那么code2 应该不报错。实际上如果把 a=1 改成 a(1) 就能够顺利编译。
如果是(2),code2 应该报错,因为 A(A&) 屏蔽了系统自动给的copy constructor,
但是它的参数没法匹配 temporary object, 因为temp 都是 const 的。所以 code3 里
改成了 A(const A&). 但是输出结果显示copy constructor 根本没有被调用过。所以
不解。
感觉上compiler应该是能优化的,所以他的行为比较可能是(1),但是这样应该不报
错,所以不解阿 |
|
j*******n 发帖数: 3254 | 2 下面这段代码
$file="/var/www/php/readme"
if (!copy($file, $file.'.bak')) {
print ("failed to copy $file... \n");
}
?>
存成文件1.php
在ubuntu 和fedora 下用firefox执行localhost/php/1.php都显示“failed to copy
readme!”。 但在terminal下用"php 1.php"命令执行,却成功了。
谁能给解释一下为什么 |
|
c**********e 发帖数: 2007 | 3 copy constructor 为什么用const reference. 我解释关于为什么用reference是 对的
,对于为什么用const,我的解释是 prevent the constructor from modifying the
object being copied. tnnd他说不对
A::A(const A& rhs) {...}
What does the const mean?
Somebody claims "The question is what const means here? I think it means
that one is prohibited to change the constant reference passed in. In
contrast, I do not think it means that one must pass in a reference of a
constant object to call the copy constructor."
Is he right or wrong? Thanks. |
|
p****r 发帖数: 165 | 4 is there a way to save a copy of a project in visual studio (solution file),
and then also save the compiler/linker setup option for that project. So I
could base on that project to create a copy and work on the copy? Thanks. |
|
s****a 发帖数: 6521 | 5 $f = 'file name.txt'
copy('file name.txt','filename.txt'); ##没问题;
copy($f,'filename.txt'); 就有warning : The first argument to copy() function
cannot be a directory
肿莫破? |
|
m*********a 发帖数: 3299 | 6 move 是move other内存的内容,=是copy other 内存的内容
如果你move, 然后delete other, 那么this就指向other的已经释放的内存了
这不是=要的,我觉得
如果other中的variable都是atomic类型的话,shallow copy就行了,*this=other
如果other中有refence类型,就用std::swap进行deep copy |
|
m*********a 发帖数: 3299 | 7 vector v;// a v vector
{
Entity e;//init an entity object on stack and set health to 100
Entity *ptr=&e; //point ptr to e
v.push_back(ptr);//copy the reference(?) ptr to vector v
cout<<"In the block"<
cout<getHealth()<
}//e is destroyed and e out of range
cout<<"Out of the block"<
cout<getHealth()<
// print out 100, is the object point... 阅读全帖 |
|
X****r 发帖数: 3557 | 8 因为还没有东西占用这个对象原来在栈上的空间。你在main里用一个函数返回vector,
然后调另一个函数打印内容试试。
对于你原始的问题C++是copy reference还是deep copy你其实只要打印指针本身的值就
知道了。 |
|
p*****2 发帖数: 21240 | 9 Copy and Paste
A combination of interfaces and good ol’ copy and paste is the way Go
currently implements sortable slices. This is of course a terrible, terrible
idea. The names of your types will end up being StringSet, IntSet, and
FloatSet. When you find a bug you’ll be forced to go through all of the
instances where you copied and pasted, fix it and hope you don’t miss any.
This is clearly not a sustainable way to ‘implement’ generics. |
|
l****z 发帖数: 29846 | 10 昨天刚刚看到Tera copy 2.0final终于出来. 然后看到一个链接是对几款常用copy软件
的测试.
http://www.winfine.com/blog/article.asp?id=59
这个测试的结论是Killcopy最快, Fastcopy其次,但fastcopy的速度和Teracopy,
Totalcopy的速度差不太多.
这个测试做的时候有点老,是2008年做的, 那个时候fastcopy还不支持右键的拖曳呢.
另外, 这个测试没有提到buffer大小对速度是否有关系. 这个我下面会提一下.
除了这几个copy软件外, 我最近还看到一个叫Burstcopy的类似软件, 所以一时兴起下
载了这些软件, 在自己机器上进行测试. 算是抛砖引玉吧.
我原来就装了Teracopy pro 2.0beta 4. 又下载了:
burstcopy 2.7 - www.burstcopy.com这个是共享软件,不过又pj的. 这个软件很老了,
是2004年的, 所以只是抱着试一试的看法.
Fastcopy: http://www.ipmsg.org/tools/fastcop |
|
l****z 发帖数: 29846 | 11 呵呵, 你没有下过电影嘛? 或者copy过电影嘛?
别人给你一个300G的usb 硬盘, 里面都是电影电视, 你就copy过来咯.
这个时候速度挺重要的.
或者临时需要备份一些文件到另外一个硬盘上,50G的东东要copy挺长时间的呢. |
|
p**o 发帖数: 3409 | 12 【 以下文字转载自 Hardware 讨论区 】
发信人: pulo (普罗), 信区: Hardware
标 题: 关于WinServer2008下的shadow copies
发信站: BBS 未名空间站 (Sat Aug 7 00:07:19 2010, 美东)
两个物理硬盘,一个装WinServer2008R2,做了Ghost映像;
另一个数据盘开启了shadow copies。
如果系统盘Ghost还原,对数据盘的shadow copies有没有影响? |
|
e***e 发帖数: 38 | 13 the copy&paste memory in exceed and windows seems diffenent, for example
if i want to copy something from IE to some x window in exceed, it does not
work. Is there anyway to make them use the copy&paste memory? Thanks |
|
S******e 发帖数: 688 | 14 【 以下文字转载自 Software 讨论区 】
发信人: Sapphire (如果,哎~), 信区: Software
标 题: 照片文件不能从一个机器copy到另外一个机器
发信站: BBS 未名空间站 (Thu Oct 18 18:34:01 2007), 转信
2 PCs 通过网络共享从一台机子查看另外一台机子里面的照片文件,有少量的不能显示
预览,想copy过来也不行,提示说 "access denied. make sure the disk is not ful
l or write protected", 但是其他的照片在同一文件夹里面的都既可以浏览,又可以随
便copy。
哪位指点一下?
thanks
P.S. 相机是canon sd400
OS 都是 WinXP Home |
|
c*m 发帖数: 836 | 15 从网上下了个电影,但是不能copy, 试图copy到另外一个folder或者外界硬盘的时候,
progress快一半的时候就出现一个pop up window: "Cannot Copy [filename]: The
request could not be performed because of an I/O device error."
我试着用winzip把它压缩,压到一半的时候,同样出现一个input file read error的
message。
以为是file corrupt了,可是用播放器打开可以看,而且可以从头看到尾,拖动也没任
何问题。 |
|
l***d 发帖数: 1828 | 16 http://www.livescience.com/culture/brain-3d-map-copy-cat-101115.html
Chinese team's brain imaging device has come under question from developers
of a U.S. device who say it's a near duplicate of theirs, LiveScience has
learned. An article on the Chinese device was published in the prestigious
journal Science, and the U.S. researchers are preparing a formal letter to
the journal in response.
According to the report appearing in the Nov. 4 online edition of Science,
the Chinese imaging device used... 阅读全帖 |
|
e***o 发帖数: 344 | 17 感谢各位的回复与建议。
Homologous recombination的想法很好,我也想过用attp,phic31的办法来做,要先置
入attp site, 然后筛选,再接着转化。只是我用的是原代细胞,不能分化。所以在
筛选起来很麻烦。也不能象细菌那样screen.
降低dna总量应该可行,但是1pg dna 就有太多的copy 了,而且据说,减低dna 总量只
能降低转化效率,不能很好的降低单个细胞转化copy数。
也想过混一些junk DNA在文库里,可是也不能保证单copy,而且不知道重复性高不高。 |
|
t**j 发帖数: 198 | 18 【 以下文字转载自 Faculty 讨论区 】
发信人: tyhj (tyhj), 信区: Faculty
标 题: 文章被editor正式接受了, 却又被copy editor 找了一堆麻烦
发信站: BBS 未名空间站 (Mon May 9 02:01:32 2011, 美东)
referee满意了, 主编也通知正式接受我的论文
没想到又收到他们一个senior copy editor 的信, 提了一大堆意见
copy editor 是做什么的, 这种情况多不多 |
|
e***o 发帖数: 344 | 19 各位大虾不知是否知道怎样使转到in vivo 的质粒/基因的copy number增加。最好是使
单copy的增加到上百个。在HEK293T cell line 里的sv40可以使 copy number 增加。
不知道可不可以把这套系统用到在神经系统里。什么方法转基因都可以。virus
infection, in utero-electroporation等等。
谢谢! |
|
e***o 发帖数: 344 | 20 谢谢。 我准备做超大量的screening, 如果一个一个划线的话,可能工作量太大。不知
道直接把colony洗下来,重新铺板或是用copy plate的办法,也能dilute copy number
到一个或2个copy?
btw, 你知道酵母里面那个inducible promoter比较好用?比如leaking expression比
较少? |
|
e***o 发帖数: 344 | 21 thanks a lot for you guys' inspiring reply. I am indeed going to do
screening. But I am developing a new method which requires 1-2 copies per
cell and can not use the automated station. Hopefully washing and replating
the colonies will dilute the copy number just like streaking.
BTW, do you guys know why the copy number decreased after streaking? |
|
w**t 发帖数: 52 | 22 The streaking do not 'dilute' the plasmid, but simply purify the colonies.
The copy number of the plasmid mostly depend on your replication origin (
never use 2u origin if you want a low copy), and whether the plasmid contain
centromere (like CEN6 on pRS416). Usually the centromere sequence can limit
the copy number of your plasmid.
I don't think you need to wash or replica your plates. If you don't want to
have too many plasmids in one cell, just simply reduce the transformation
efficiency and ... 阅读全帖 |
|
|
|
c**********e 发帖数: 2007 | 25 If I want to copy it from folder FOLDER to folder WORK, I can do the
following.
data WORK.dataset1;
set FOLDER.dataset1;
run;
Another way is to use proc copy procedure.
proc copy in=Timeline out=work memtype=data;
select training_timeline;
run;
There are sure other ways, say proc datasets.
My primary concern is the efficiency, as my dataset1 is huge. Any thought?
Thanks. |
|
r*******r 发帖数: 2554 | 26 比如我想copy一下某帖子,发现copy不了了。有些可以copy,但是不能paste。以前是
可以的啊。 |
|
r*******r 发帖数: 2554 | 27 就是普通的copy和paste。比如,我想引用某帖子中的一段话,我用光标选好想要copy的
句子,然后按alt + c,copy不了。用ctrl + c,也不行。以前都可以的啊。 |
|
R*******e 发帖数: 25533 | 28 http://www.youtube.com/watch?v=Ez1rYlVoges
乐视音乐:
#纪录片#高评分的《正版,盗版》(Good Copy Bad Copy)探究了版权、P2P下载以及相
关文化。采访了音乐人Girl Talk、Danger Mouse,创作共享协议创始人Lawrence
Lessig,最大BT站海盗湾的创始人,美国电影协会主席等……这个敏感和充满争议的话
题值得深究! |
|
w*******y 发帖数: 60932 | 29 BestBuy has Coraline 3D blu-ray:
http://www.bestbuy.com/site/Coraline - Blu-ray 3D/1738058.p?skuId=1738058&id=1994979
for $11.49 each when you buy two. Listed at $39.99, but price drops to $11
.49 each when you add 2 copies to cart. Release date is January 4th, can do
store pickup on release day or shipping is free.
Also available are the Coraline Collector's Edition:
http://www.bestbuy.com/site/Coraline - Widescreen Collector's Dubbed - Blu-ray Disc/9616698.p?skuId=9616698&id=1994979
#39;s+Du... 阅读全帖 |
|
w*******y 发帖数: 60932 | 30 First deal, go easy on me...
Amazon has Scott Pilgrim vs. the World (Two-Disc Blu-ray/DVD Combo + Digital
Copy) for $19.99. While this price in itself isn't good, this is one of
those movies where Amazon will give you a $4 if you rent it through their
VOD service (for $4). But if you still have VOD credit left over from
previous deals, you can use it to rent Scott Pilgrim and get the coupon.
So you could potentially buy this movie for $16 with free 2-day shipping (
with Amazon prime), and a 48... 阅读全帖 |
|
w*******y 发帖数: 60932 | 31 Chip.de is having an easter promotion and giving away copies of Daemon Tools
Pro.
The installer comes with the serial number pre-loaded. To get a copy, go to
Link:
http://www.chip.de/downloads/DAEMON-Tools-Pro-Advanced-Vollvers
Click "Zum Download", then click "Download-Server CHIP Online" and wait a
few seconds, the download should start automatically.
Features include:Create .iso, .mds/.mdf and .mdx images of CD, DVD, Blu-ray
discs
Protect images with password
Make or edit images with... 阅读全帖 |
|
w*******y 发帖数: 60932 | 32 This may not be a deal but many people that own Battlefield 3 for PS3 may
not know about this. EA originally promised to include a free copy of
Battlefield 1943 with new copies of Battlefield 3 on PS3. They didnt until
after the game came out say that they were no longer including it. They have
know decided to make good on there word and starting December 10th you can
get a voucher for your free copy
Link:
http://1943redemption.battlefield.com/
quote
- Activate your Battlefield 3 Online Pass... 阅读全帖 |
|
w*******y 发帖数: 60932 | 33 Printable Office Depot coupon: $10 off your qualifying in-store purchase of
$10 or more at Copy & Print Depot(TM):
http://www.myworkliferewards.com/pdf/promotions/rc/011012_EN.pd
Includes full-service copies, binding & laminating,
posters, signs & banners, business cards &
stationery, custom stamps, promotional products,
passport/ID photos, digital photo prints/products,
shredding and more.
Valid in store only. Members must present their Worklife Rewardsor Star
Teacher Member Number at checkout.... 阅读全帖 |
|
v*********u 发帖数: 10464 | 34 怎么安装一个俄语或者乌克兰语语言包啊,我这边无法copy paste俄语文字很尴尬
就是人家用word转成的pdf文档是俄语的,可是我copy到另外一个word里面就是英文字
体了,所以需要安装一下可以 保证我 阅读的,,能不能打 俄语字不重要 |
|
m********5 发帖数: 17667 | 35 基本都是要学所谓招数,不是从秘笈copy就是找人演示。
总之原创基本是没有的,所以秘笈是越古越好,因为后世不断copy失真了。
中国以前的读书人,如果古人没有说过要吃饭,则连吃饭都不会了,就这么蠢。
其实在真实的格斗世界里面是没有什么预先设定好的招数的,都是看准机会用最基本的
技术进行组合格斗。 |
|
|
x******g 发帖数: 33885 | 37 当然是copy苏联先进啦。
没有苏联的copy,就没有新中国。 |
|
b***t 发帖数: 1248 | 38 射墙的水平很高,尤其是copy/paste的功夫,和习大大copy/paste的习金瓶思想有一拼。
估计,射墙哥就是习大大本人。可信度:100% |
|
V**3 发帖数: 12756 | 39 尼玛copy 能copy来人气么?
只有独树一帜才有希望(但是也别独树一帜当董存瑞) |
|
发帖数: 1 | 40 这点最危险 她copy所有人政策 谁的受欢迎就copy谁的 完全没底线 可惜观众还很买账 |
|
c*****e 发帖数: 215 | 41 WI投票统计的官方网站辟谣说那是测试数据,这只是用来蒙外行的,只要干果数据库工
作的都知道,凡是测试数据都是从production 真实数据 copy过来的,和真实数据是一
样的,区别在于没有像真实数据库那样即时更新,而是要等真实数据copy过来才能更新
。 |
|
b*****d 发帖数: 61690 | 42 Only one copy is being made available to senators, and each party will take
turns viewing it in one-hour increments, Durbin said.
“Get this — one copy! For the United States Senate,” he said. “That’s
what we were told. And we were also that we would be given one hour for the
Dems, one hour for the Republicans. Alternating. |
|
g********i 发帖数: 360 | 43 租房ing,房东要求SSN 或者 driver license 的copy,我知道SSN泄漏给私人可能会有
麻烦, driver lisence的 copy呢? 请达人指点,小女不胜感激! |
|
y****o 发帖数: 25 | 44 价钱谈好,在dealer网站填信息check credit,已填ssn号
dealer发信说“We have an approval from Volkswagen but they are requesting to
see a copy of the actual card.”
不懂,没有最后决定成交,他们已有ssn号,为什么还需要copy。请教大家,多谢!!! |
|
v***a 发帖数: 17 | 45 订回国机票,代理除了要信用卡的copy,还要driver license的copy,正常吗? 大家
有没有碰到过?其它代理也这样要求吗?谢谢 |
|
j***f 发帖数: 2543 | 46 我想要的物品:
2月1号,1月24电脑receipt&UPC copy
单张面值:
可接受的价格(必须明码标价!):
$10/each
物品新旧要求:
邮寄方式要求:
email the copy
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
non cc paypal
其他补充说明:
广告的有效期:
物品来源:
我的联系方式:
二手交易风险自负!请自行验证是否合法和一手卡!: |
|
n**********s 发帖数: 785 | 47 我想的物品:
1月16电脑receipt&UPC copy
单张面值:
可接受的价格(必须明码标价!):
$10/each
物品新旧要求:
邮寄方式要求:
email the copy
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
non cc paypal
其他补充说明:
广告的有效期:
物品来源:
我的联系方式:
二手交易风险自负!请自行验证是否合法和一手卡!: |
|
h******p 发帖数: 191 | 48 我想要的物品:
Feb,01,2010 电脑receipt&UPC copy (unused for bundle rebate)
单张面值:
可接受的价格(必须明码标价!):
$12/each
物品新旧要求:
邮寄方式要求:
email the copy
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
non cc paypal
其他补充说明:
广告的有效期:
物品来源:
我的联系方式:
站内mail
二手交易风险自负!请自行验证是否合法和一手卡!: |
|
p*********r 发帖数: 1440 | 49 我想要的物品:
Feb,28,2010 电脑receipt&UPC copy
unused for HP bundle rebate
need 2 sets
单张面值:
可接受的价格(必须明码标价!):
$10/set
物品新旧要求:
邮寄方式要求:
email the copy
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
non cc paypal
其他补充说明:
广告的有效期:
物品来源:
我的联系方式:
站内mail
二手交易风险自负!请自行验证是否合法和一手卡!: |
|
s*******y 发帖数: 338 | 50 我想要的物品:
今天wm的emachine receipt和UPC copy
unused for HP bundle rebate
单张面值:
可接受的价格(必须明码标价!):
$8
need 20
物品新旧要求:
邮寄方式要求:
email the copy
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
non cc paypal
其他补充说明:
广告的有效期:
物品来源:
我的联系方式:
站内mail
二手交易风险自负!请自行验证是否合法和一手卡!: |
|