由买买提看人间百态

topics

全部话题 - 话题: except
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
D********G
发帖数: 70
1
来自主题: JobHunting版 - c++ stl 为什么是 exceptional safe
c++ stl 为什么是 exceptional safe, 这个怎么回答呢
j********x
发帖数: 2330
2
我原来面nv的时候三面电话里问道exception safety。。。只是intern而已哦。。。
l*****a
发帖数: 14598
3
来自主题: JobHunting版 - leetcode OJ 不能使用exception?
no idea
旁边帖子里面有个google c++ style guide的link
我扫了一眼,说是也不支持exception
l*********8
发帖数: 4642
4
来自主题: JobHunting版 - leetcode OJ 不能使用exception?
谢谢回答。 我以后在leetcode不用exception就是了。
p****n
发帖数: 69
5
比如实现BST的时候,内部节点用auto_ptr或者shared_ptr封装起来,避免naked
pointer;用copy_and_swap idiom(from effective c++)实现exception safety;
member function尽量用const,etc
还是说为了突出BST的算法而尽量简化代码?
Thanks
a********n
发帖数: 1287
6
来自主题: JobHunting版 - 错误输入一般assert还是exception
偶的意思是不局限于leetcode。
即使是写代码,也有什么时候 exception, assert
和返回值的问题。
实际上MS问过这个题。
t******g
发帖数: 44
7
来自主题: JobHunting版 - 错误输入一般assert还是exception
如果是java的话,好像用assert都是用来写Unit Test吧,好像也有写assert true,如
果不是就AssetError之类的语法,不过没写过,一般就是throw Exception.
s****A
发帖数: 80
8
遇到错误用if语句不就可以写处理的code了吗?
如果出现错误或者异常,不就是打印一下错误信息然后return吗?
那throw exception有什么特别的呢?
w****a
发帖数: 710
9
举个例子,
比如你在写一个脚本解析器,你编译脚本过程中检查脚本是否有语法错误。但是你的检
查机制可能在很多初。如果你每次检查到语法错误的时候仅仅是打印下错误信息,这个
显然不行,因为你可能不需要打印信息而是要返回具体的错误描述,要写到日志里。如
果仅仅是return,这个也不行,你在你的解析器里return,外面也不知道。如果是传统
方法的话,一般可以写到一个全局的错误收集器里,可以通过GetLastError之类的函数
来获取上一次出错的错误编号和具体内容。这个是传统做法。
如果使用exception机制,查到错误时直接抛出异常。你抛出异常,可以由不同的地方
catch。catch后可以随意处理,可以跳过,也可以直接警告输出个消息,也可以崩溃。
比如上面的例子:
try{
script_parser.parse(script);
}catch(XXXScriptExcept& e){
printf(e.what());
}
传统做法的代码是:
int err = script_parser.parse(script);
if(err!=0){
printf(G... 阅读全帖
d**********u
发帖数: 3371
10
【 以下文字转载自 Programming 讨论区 】
发信人: dingdonggulu (gulu), 信区: Programming
标 题: 问一下LeetCode JVM的Illegeal Parameter Exception
发信站: BBS 未名空间站 (Sun Feb 9 00:28:04 2014, 美东)
写代码
PriorityQueue pq = new PriorityQueue(lists.size(), new
Comparator(){ ...
这里用动态的list.size() 定义 capacity的时候出现这个编译错误 用静态书比如100
就没有错
而同样的代码在eclipse中调试就完全没有错 不管是动态还是静态
请问下这是什么原因 不同的JVM?
k**l
发帖数: 2966
11
来自主题: JobHunting版 - 请教 C++ exception 面试问题
c++ 的特点就是几乎没有 magic,
throw exception, 就跳出来了, try block 后面的话不会执行
t***e
发帖数: 84
12
在南加。问了一圈,一听说是Bank Owned的房, title保险不肯把Western Regional
Exception去掉。多交钱也不行。
想问问Bank Owned的房是否都这样?
如果前任forclosure的屋主有债务,但是现在不在public record里,到close之后债主
来找我们麻烦的可能性有多大呢?
Thanks a lot
d*******u
发帖数: 1181
13
【 以下文字转载自 USANews 讨论区 】
发信人: renzaimg (michael), 信区: USANews
标 题: Re: 真实的谎言,美国真的那么exceptional吗?
发信站: BBS 未名空间站 (Fri Sep 13 19:53:29 2013, 美东)
这个老黑呆在白宫里吃香喝辣,当然会这么说。总体来说,美国人越来越穷。在部分行
业中,美国劳工如今必须与中国等开发中国家的低廉工资竞争;电话客服人员等工作都
已外包给印度、菲律宾等国;高科技取代了部分劳工。大量非法移民涌入,超高的生
育率,又增加了社会负担。美国很快就要中南美洲化,中产阶级急剧减少,贫困人口日
益增加。。。
基本上,再过30年,拉美裔就是美国的多数裔,将占总人口的50%左右。
d*******u
发帖数: 1181
14
【 以下文字转载自 USANews 讨论区 】
发信人: renzaimg (michael), 信区: USANews
标 题: Re: 真实的谎言,美国真的那么exceptional吗?
发信站: BBS 未名空间站 (Fri Sep 13 20:03:23 2013, 美东)
这是李光耀接受采访时,有关美国未来的谈话,
你实行全民民主,为了赢取选票,你必须愈给愈多。为了在下次选战击败对手,你必须
承诺给得更多。因此这就像没完没了的大拍卖,而代价,就是下一代背负国债。
美国政治人物似乎患了羞涩畏怯的毛病。美国学界和新闻界放言高论美国的问题和弱点
,可是自越战结束以来,美国选民却显得不愿倾听政治领导人辩论严肃的议题。或许是
这个原因,共和党或民主党都不愿专注在削减赤字支出,尤其是社会福利项目,增加储
蓄和投资,或最最重要的,是改善美国教育制度,培育未来能在国际间竞争的工作人才
这一类的迫切需要。
多元文化会毁了美国。大量墨西哥人和中南美洲人继续涌入美国,在全美国散播他们的
文化,是很危险的一件事。如果他们的生育率高过白种盎格鲁撒克逊新教徒,又和他们
住在一起,谁的文化会胜出?白种盎... 阅读全帖
s********9
发帖数: 595
15
来自主题: shopping版 - 有谁遇到过UPS Exception?
从Dell SMB订了部手机,Order Status显示今日Delivery.
于是就在家里等啊等啊,一直等到花儿都谢了好几茬了。现在都晚上8点了,UPS连个鬼
影子都没有。
遂登陆UPS的网站Tracking,发现Status显示Exception.具体描述为EMERGENCY
CONDITIONS BEYOND UPS' CONTROL,MECHANICAL FAILURE OCCURRED.怎么理解?大雪天
机械故障?
不知道有谁碰到过类似情况,该如何处理?谢谢大家的帮助!!顺祝大家春节愉快!
l**1
发帖数: 1875
16
【 以下文字转载自 USANews 讨论区 】
发信人: enjoice (Miami Heat), 信区: USANews
标 题: MSN online poll:Entire planet supports Obama - except Chi
发信站: BBS 未名空间站 (Tue Nov 6 14:43:55 2012, 美东)
http://news.uk.msn.com/us-elections-2012/entire-planet-supports
"
Throughout this year's presidential campaign Romney has tried to talk tough
towards the country, accusing it of being a nation of "cheats" and of
stealing "intellectual property".
But MSN's poll reinforces an impression of Romney being a friend of China.
"
这里的左... 阅读全帖
K**o
发帖数: 906
17
来自主题: Immigration版 - Help- how to claim NIW exceptional ability
niw要看exceptional (better than peers, serve national interest greater)+
no need lc。跟eb1一样吹自己多么出色就行了,但没必要 international acclaim
b****M
发帖数: 1390
18
来自主题: Immigration版 - NIW需要证明Exceptional Ability么?
探讨一下,如果没有硕士以上学位,但是本科5年以上工作经验就可申请NIW,但是没有
必要一定证明你有Exceptional Ability, 但是有围绕国家利益阐述,是不是这样?
b****M
发帖数: 1390
19
来自主题: Immigration版 - NIW需要证明Exceptional Ability么?
NIW 的条件并没有exceptional ability 这一项,所以无论硕士还是非硕士,都没有必
要证明这点。你认为硕士以下要证明这项,是不? NIW 要求本科毕业工作4年(还是5
年?)或硕士学位。 提醒:你讨论的是NIW, 属于NIW, 是EB2 的一种,不是EB1A。
A*********r
发帖数: 8271
20
来自主题: Immigration版 - NIW需要证明Exceptional Ability么?
NIW属于EB2,所以需要证明advanced degree或者exceptional ability.
Eb1a彻底没有学位要求,只要证明extraordinary ability。新memo所谓的test对这两
个都适用。

5
R**********n
发帖数: 1109
21
来自主题: Immigration版 - NIW需要证明Exceptional Ability么?
这个 Exceptional Ability 的六条是指 EB1 的吗?
网上好像没有看到关于 NIW 需要满足哪几条的具体的规定,能不能给个链接?
多谢了。
x****y
发帖数: 58
22
来自主题: Immigration版 - 485 TB exception可行么???
医生告诉我目前有个有个全国范围的TB试剂短缺,可以给我豁免掉
TB exception because of a notional wide supply shortage
然后签名,心里有点忐忑,有没有人有过同样经历???
s********e
发帖数: 542
23
我最近也在准备NIW
你贴的这个USCIS网页,网上一级,
你可以看到EB2-NIW也可以是 advanced degree category
里面就没有这些membership或者工资之类的要求
我的理解是:
EB2有两类: advanced degree 或者 exceptional ability
这两类都可以claim NIW
c******3
发帖数: 6509
24
NIW包括Advance degree和Exceptional Ability两个子类,如果你不是学历问题,建议
选前者,直接证明贡献就行。
我是因为学历最高直到Bachelor等价,前年不得以走第二条。我连IEEE Member都拿出
去凑三项,你要有IEEE Senior Member会好点。
再说你不是EB1B都过了吗,还玩NIW干啥
c******3
发帖数: 6509
25
建议按照I-797的标准写法(有些单词797缩写了):
203 (b)(2) Indiv w/Adv Deg or Exceptional Ability in the National Interest
c******3
发帖数: 6509
26
这条是Exceptional Ability用的,对我这种学历不够的可以,你有学历的没必要这么
费事

in

发帖数: 1
27
>这条是Exceptional Ability用的,对我这种学历不够的可以,你有学历的没必要这么
费事
请问您这条信息在官网上哪里能找到?我看到的这个表格(https://www.uscis.gov/
working-united-states/permanent-workers/employment-based-immigration-second-
preference-eb-2)好像是对所有 NIW applicants 都适用。是我理解错了还是这是新
规定?
l**1
发帖数: 1875
28
【 以下文字转载自 USANews 讨论区 】
发信人: enjoice (Miami Heat), 信区: USANews
标 题: MSN online poll:Entire planet supports Obama - except China
发信站: BBS 未名空间站 (Tue Nov 6 14:43:55 2012, 美东)
http://news.uk.msn.com/us-elections-2012/entire-planet-supports
这里的左派还在叫嚣要为中国而支持O8... 无知也无耻
l**1
发帖数: 1875
29
【 以下文字转载自 USANews 讨论区 】
发信人: enjoice (Miami Heat), 信区: USANews
标 题: MSN online poll:Entire planet supports Obama - except Chi
发信站: BBS 未名空间站 (Tue Nov 6 14:43:55 2012, 美东)
http://news.uk.msn.com/us-elections-2012/entire-planet-supports
"
Throughout this year's presidential campaign Romney has tried to talk tough
towards the country, accusing it of being a nation of "cheats" and of
stealing "intellectual property".
But MSN's poll reinforces an impression of Romney being a friend of China.
"
这里的左... 阅读全帖
l**1
发帖数: 1875
30
【 以下文字转载自 USANews 讨论区 】
发信人: enjoice (Miami Heat), 信区: USANews
标 题: MSN online poll:Entire planet supports Obama - except Chi
发信站: BBS 未名空间站 (Tue Nov 6 14:43:55 2012, 美东)
http://news.uk.msn.com/us-elections-2012/entire-planet-supports
"
Throughout this year's presidential campaign Romney has tried to talk tough
towards the country, accusing it of being a nation of "cheats" and of
stealing "intellectual property".
But MSN's poll reinforces an impression of Romney being a friend of China.
"
这里的左... 阅读全帖
D**C
发帖数: 6754
31
we must be doing something really exceptional, just in wrong direction
l**1
发帖数: 1875
32
【 以下文字转载自 USANews 讨论区 】
发信人: enjoice (Miami Heat), 信区: USANews
标 题: MSN online poll:Entire planet supports Obama - except Chi
发信站: BBS 未名空间站 (Tue Nov 6 14:43:55 2012, 美东)
http://news.uk.msn.com/us-elections-2012/entire-planet-supports
"
Throughout this year's presidential campaign Romney has tried to talk tough
towards the country, accusing it of being a nation of "cheats" and of
stealing "intellectual property".
But MSN's poll reinforces an impression of Romney being a friend of China.
"
这里的左... 阅读全帖
l**1
发帖数: 1875
33
【 以下文字转载自 USANews 讨论区 】
发信人: enjoice (Miami Heat), 信区: USANews
标 题: MSN online poll:Entire planet supports Obama - except China
发信站: BBS 未名空间站 (Tue Nov 6 14:43:55 2012, 美东)
http://news.uk.msn.com/us-elections-2012/entire-planet-supports
这里的左派还在叫嚣要为中国而支持O8... 无知也无耻
l**1
发帖数: 1875
34
【 以下文字转载自 USANews 讨论区 】
发信人: enjoice (Miami Heat), 信区: USANews
标 题: MSN online poll:Entire planet supports Obama - except Chi
发信站: BBS 未名空间站 (Tue Nov 6 14:43:55 2012, 美东)
http://news.uk.msn.com/us-elections-2012/entire-planet-supports
"
Throughout this year's presidential campaign Romney has tried to talk tough
towards the country, accusing it of being a nation of "cheats" and of
stealing "intellectual property".
But MSN's poll reinforces an impression of Romney being a friend of China.
"
这里的左... 阅读全帖
l**1
发帖数: 1875
35
【 以下文字转载自 USANews 讨论区 】
发信人: enjoice (Miami Heat), 信区: USANews
标 题: MSN online poll:Entire planet supports Obama - except China
发信站: BBS 未名空间站 (Tue Nov 6 14:43:55 2012, 美东)
http://news.uk.msn.com/us-elections-2012/entire-planet-supports
这里的左派还在叫嚣要为中国而支持O8... 无知也无耻
s**********r
发帖数: 565
36
we went to Anza Borrego last year. So don't want to repeat same trip again.
except this park, is there any other good place to watch wild flower this
year?
thanks
l**1
发帖数: 1875
37
【 以下文字转载自 USANews 讨论区 】
发信人: enjoice (Miami Heat), 信区: USANews
标 题: MSN online poll:Entire planet supports Obama - except Chi
发信站: BBS 未名空间站 (Tue Nov 6 14:43:55 2012, 美东)
http://news.uk.msn.com/us-elections-2012/entire-planet-supports
"
Throughout this year's presidential campaign Romney has tried to talk tough
towards the country, accusing it of being a nation of "cheats" and of
stealing "intellectual property".
But MSN's poll reinforces an impression of Romney being a friend of China.
"
这里的左... 阅读全帖
l**1
发帖数: 1875
38
【 以下文字转载自 USANews 讨论区 】
发信人: enjoice (Miami Heat), 信区: USANews
标 题: MSN online poll:Entire planet supports Obama - except China
发信站: BBS 未名空间站 (Tue Nov 6 14:43:55 2012, 美东)
http://news.uk.msn.com/us-elections-2012/entire-planet-supports
这里的左派还在叫嚣要为中国而支持O8... 无知也无耻
l**1
发帖数: 1875
39
【 以下文字转载自 USANews 讨论区 】
发信人: enjoice (Miami Heat), 信区: USANews
标 题: MSN online poll:Entire planet supports Obama - except Chi
发信站: BBS 未名空间站 (Tue Nov 6 14:43:55 2012, 美东)
http://news.uk.msn.com/us-elections-2012/entire-planet-supports
"
Throughout this year's presidential campaign Romney has tried to talk tough
towards the country, accusing it of being a nation of "cheats" and of
stealing "intellectual property".
But MSN's poll reinforces an impression of Romney being a friend of China.
"
这里的左... 阅读全帖
J**J
发帖数: 163
40
Great location! Available in January, flexible move-in time.
Ideal for NIH people, close to Montgomery mall where you can take bus to NIH
and downtown Bethesda. Detail as follows:
It is sunny upgraded Apt in Bethesda with attached balcony and hardwood
floors in living room and dining room. Carpeting in the bedrooms. Plenty of
free parking space.Walking distance to Montgomery Mall, shopping,
restaurants, Cabin John Park. Gym, tennis courts, and swimming pool with
sauna on site for free. 24-hour ... 阅读全帖
l**1
发帖数: 1875
41
【 以下文字转载自 USANews 讨论区 】
发信人: enjoice (Miami Heat), 信区: USANews
标 题: MSN online poll:Entire planet supports Obama - except Chi
发信站: BBS 未名空间站 (Tue Nov 6 14:43:55 2012, 美东)
http://news.uk.msn.com/us-elections-2012/entire-planet-supports
"
Throughout this year's presidential campaign Romney has tried to talk tough
towards the country, accusing it of being a nation of "cheats" and of
stealing "intellectual property".
But MSN's poll reinforces an impression of Romney being a friend of China.
"
这里的左... 阅读全帖
r*******u
发帖数: 8732
42
圓滿謝幕
中國奪51金 獎牌邁100 2008年8月25日
【明報專訊】「真正無與倫比的奧運會(Truly Exceptional Games)」是國際奧委會主
席羅格(Jacques Rogge)對今屆北京奧運的評價,奧運聖火在「鳥巢」祥雲火炬燃點了
16晝夜,其間創造了43項新世界紀錄、85項新奧運紀錄,誕生無數運動新星,中國更破
紀錄奪得51金的驕人成績,總獎牌數目邁進100大關。隨閉幕禮中運動員捲起手中卷
軸,聖火亦慢慢熄滅;以「相聚、回憶、狂歡」為主題的閉幕禮,將體育凝聚力和奧運
精神的光輝延續。健兒互相暫別,等待4年後,倫敦再見。
「透過本屆奧運會,世界更多地了解了中國,中國更多地了解了世界!」羅格在奧運閉
幕式上,亦特別感謝中國人民和出色的奧運義工。
在奧運開幕式,全球人類見證中國傳統藝術文化特色﹕千人鼓、太極操、書卷水墨畫
、人肉活字印刷演繹,令人對中國刮目相看;在運動場上,在今屆奧運會上,一眾中國
健兒亦創下51金牌紀錄,獎牌總數達100個,是歷屆最好成績。
昨日的閉幕式繼續以鼓聲作序幕,逾千名穿著銀鈴舞衣的雲南舞者,在鼓聲召喚下匯聚
在鳥巢中心,載歌載舞迎接天鼓。接
f**********n
发帖数: 10757
43
来自主题: NCAA版 - Notre Dame, except Football to ACC
Notre Dame will join the Atlantic Coast Conference as a full member with the
exception of football, but will play five football games annually against
ACC teams, industry sources told ESPN's Brett McMurphy.
l*****5
发帖数: 121
44
UA / CO will start charging $70 U.S for 2nd Checked in Bag to Asia and China
except Hong Kong in August, 2011.
http://www.united.com/page/article/0,6867,52482,00.html
A****a
发帖数: 988
45
对elite好像没变
页面上有个exception的link,讲这个的
z******i
发帖数: 5114
46
EA 的 Exceptional Lipstick 15号的颜色,用了好多年,忘记什么名字了
现在这个颜色还出不出了阿?想网购,最近几天大雪,不想去专柜了~~~
多谢了
a****a
发帖数: 3992
47
上周五变成delivery,然后周五晚上变成exception,一直到现在还是。这是啥意思啊
?有人遇到过嘛?多谢
s********i
发帖数: 17328
48
来自主题: PhotoGear版 - UPS Exception 有人碰到过吗?
如果大家都碰到就不叫exception了。
W*****s
发帖数: 684
49
Hunmun, You should not attack anybody except for those HH's fans. Since a
group of your HH's fans attacked me at the very begining, I am not going to
forgive your stupid HH's fans who attacked or attacks me.
Hunmun, you can eat every shit from HH in your private place. Nobody cares.
G***G
发帖数: 16778
50
来自主题: EnglishChat版 - except that
The poverty rate would have been higher except that it declined
substantially for elderly Americans, falling to 8.9% from 9.7%.
Can someone help with structural analysis of the sentence above?
what is it different from the following sentence
"The poverty rate would have been higher if it had not declined
substantially for elderly Americans, falling to 8.9% from 9.7%."
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)