The overall result is that the code is more readable and less prone to the kinds of off-by-one errors common to array indexing.
总的结果是代码的可读性更强,更不容易发生数组索引常出现的离一(off-by-one)误差。
That kind of off-by-one error might not cause your program to crash or your test to fail, but there is still memory corruption going on.
这种错误可能不会导致您的程序崩溃或者您的测试失败,但是仍然存在内存崩溃的危险。
The Mole had slipped off somewhere by himself, without telling any one where he was going to.
鼹鼠莫尔自己溜走了,没告诉任何人他要去哪儿。
In a survey by the center of older workers who were laid off during the recession, just one in six had found another job, and half of that group had accepted pay cuts.
对在经济衰退期间被解雇的老员工中心进行的一项调查中,只有六分之一的人找到了另一份工作,其中一半的人接受了减薪。
I purposely interrupt one of the access paths by pulling off an FC cable between the host and switch.
我故意拔掉主机与交换机之间的一根 FC电缆,从而中断其中一条访问路径。
If the light flashed on and off several times, the dolphins were supposed to press the left-hand lever followed by the right-hand one.
如果灯亮了又灭了好几次,海豚就应该先按左手的杠杆,再按右手的杠杆。
Located on the shore of Sullivan's Island off the coast of South Carolina, the award-winning-cube-shaped beach house was built to replace one smashed to pieces by Hurricane Hugo 10 years ago.
这座获奖的立方体海滩别墅位于南卡罗来纳海岸外的苏利文岛的岸边,是为了取代10年前被飓风“雨果”摧毁的房子而建造的。
The flowers died off one by one.
花儿开过就一朵接一朵地凋谢了。
One by one, our screens were turned off.
我们的屏幕一个接一个地关闭了。
His friends fell off one by one when he was in adversity.
在他身处逆境时,他的朋友一个接一个离他而去。
Then I purposely interrupt one of the access paths by pulling off an FC cable between the host and switch.
然后,我故意拔掉主机与交换机之间的一根 FC电缆,以中断其中一条访问路径。
One by one, its inhabitants moved off of the island, leaving empty buildings behind.
岛上的居民一个接一个的搬离了端岛,只留下了空置的建筑物。
NATO warships have launched an anti-piracy operation off the coast of Somalia by escorting one ship to port with plans for a similar operation on Tuesday.
北约军舰在索马里沿海开展一项反海盗的行动,他们护送了一艘船进港,另一个类似的行动也会在星期二进行。
He looked like a banker. Any one would have been proud to be seen off by him.
有他这样一位具备银行家气质的人前来送行,被送的人都会甚感荣幸。
In China, by contrast, it makes lots of one-off sales to small businesses and individuals, and as a result has by far the largest market share, of around 36%.
在中国则不同,联想与大量的小公司与个人用户做了许多一次性的业务,并给联想带来了最大的市场份额——约为36%。
He returned to Apple 11 years later when it was being written off by rivals. What followed was one of the most remarkable comebacks in business history.
11年后他重回苹果,此时苹果公司在与对手的竞争中已近绝境。随之而来便是商业史上最非同寻常的一次回归。
For their part, scientists have puzzled over the genetic mechanism that kills off cells one by one until a leaf drops.
对于科学家来说,他们只是好奇于其中的遗传机制,一个细胞一个细胞地死去直到整片树叶凋零。
First came a catchy tune about eight oranges; then they counted off one by one while throwing up their arms in a wave.
先是一首关于八个橙子的动人乐曲,然后他们一个接一个报数,同时将手臂举起作波浪状。
But if young American Jews really do turn away from Zionism, or are turned off by it, everything could one day change.
但是如果年轻的美国犹太裔真的渐行渐远甚至完全抛弃犹太复国主义,那么一切又将瞬间天翻地覆。
Aggregate profits growth has been flattered by the performance of Wall Street firms and distorted by one-off changes in the accounting treatment of inventory profits and depreciation.
利润总额的增长受益于华尔街公司的业绩才变得光彩夺目,而且由于存货利润和折旧的会计处理的一次性改变而被扭曲。
His midsize company has a program by which employees can transfer paid time off to one another.
他工作的中等公司有一个雇员可以转换带薪休假日给他人的规划。
Buying them off one by one got negotiators somewhere, but not far enough.
一个个地收买,会让谈判取得一些进展,但是进展不大。
Now there is a seat near the entrance of the room, andupon this she will lay her garments as she takes them off one by one; and sothou wilt be able to gaze upon her at full leisure.
在靠近房间门口的地方有个座位,她会在那里把自己的衣服一件件脱下,然后放到座位上。 而你就可以因此而轻松地欣赏到她。
One of the key aspects of the system architect's role is to weigh up conflicting requirements and decide on a solution, often by trading off one aspect against another.
系统架构师角色关键的一方面就是衡量相互冲突的需求、决定解决方案,常常要牺牲一个方面来换取另一个方面。
Blue Capital's original plan, drawing on Colony's expertise, was to make a one-off profit by having Carrefour sell all or part of its property portfolio.
根据柯罗尼资产集团的专业意见,蓝色资本原本计划让家乐福出售全部或部分的资产组合,以实现一次性的利润。
One day, the pet parrot was washed off the raft by a sudden wave.
一天,一只宠物鹦鹉被一阵突然袭来的浪冲走了。
A portion was divided off at one end by a curtain, behind which was his bed, the outer part being furnished as a homely sitting-room.
阁楼的一头用帘子隔出了一部分,里面就是他的床铺,外面的部分则被布置成一个朴素的起居室。
By cutting the edges off a cylindrical one, he stopped it from rolling off a table.
通过削去圆柱形笔体的边缘,使铅笔不那么容易滚下桌子。
Pettis says China may be forced into a one-off revaluation of the yuan, perhaps by as much as 20 percent.
佩蒂斯说,中国有可能被迫以百分之20的幅度,一次性重新估价人民币币值。
Pettis says China may be forced into a one-off revaluation of the yuan, perhaps by as much as 20 percent.
佩蒂斯说,中国有可能被迫以百分之20的幅度,一次性重新估价人民币币值。
应用推荐