由买买提看人间百态

topics

全部话题 - 话题: exit
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
A**********e
发帖数: 3102
1
来自主题: Programming版 - How to stop a function in MATLAB?
what do u mean?
if you can even type `exit', then your function most likely is not running.
so i guess you were asking how to quit a function and return back to the
main program. in this case, use `return'

If I use "exit", it will exit the entire MATLAB environment. But how can I
stop the my program without exiting the MATLAB? Thanks.
b******e
发帖数: 432
2
# For this function, I think the original one is semantically wrong.
# Based on the description, I think it always needs to print to STDERR.
# However, when the option is not STDERR, it needs to print to STDOUT as
well.
#
# Besides, I may improve it by add some the restrict to input or add more
match pattern to the option, Ex:
# 1. I may trim the $option before compare.
# 1. The input option might be 'stderr', I may modify it to .
# 2. There might no input option, or no input message.
s... 阅读全帖
s*****i
发帖数: 93
3
来自主题: Programming版 - 问个c++ 编译的问题
在cygwin里面g++,总出现这种错误,请问怎么解决,谢谢
$ g++ hello.cpp
28 [main] collect2 6108 fork: child -1 - forked process 5612 died
unexpectedly, retry 0, exit code -1073741515, errno 11
1047122 [main] collect2 6108 fork: child -1 - forked process 10176 died
unexpectedly, retry 0, exit code -1073741515, errno 11
3098042 [main] collect2 6108 fork: child -1 - forked process 5656 died
unexpectedly, retry 0, exit code -1073741515, errno 11
7149022 [main] collect2 6108 fork: child -1 - forked process 9888 died
une... 阅读全帖
s*********k
发帖数: 15
4
三十中旬, 年收入二十万, 在大公司七年抗战做上了产品经理, 一周四十个小时,
ld年收入十万, 两个人工作稳定,四口之家, 生活压力不大, 每年积蓄投资都稳定
上涨。 手上产品都是非常边缘化的东西,刚开始入行的热情已经不存在, 现在公司
的大腿被消弱不能再像以前那样提拔自己, 部门也从高速发展变成了循规蹈矩, 最近
一次洗牌后, 有了混吃等死的感觉, 白天工作开始梦游。
一直觉得自己能说能写能卖能设计能码,虽然没有一项是一流高手,作为多面手更适合
在小公司一把抓, 社会主义一块砖, 哪里需要哪里搬。 相对来说, 自己中二的性格
和情商, 在成长型公司相对来说没有那么吃亏。
得到一个机会在startup做产品经理, 收入会降到十五万, 股份另算。 这个公司不
到四十人,两年寿命, 今年刚拿下了一千多万的series A, 一水白人, 少许老中没有
阿三。 领域说来凑巧, 跟我在家自己刚开始捣鼓的一个app居然是同一个领域, 如
果把我这个hobby project拿出来, 再表现的热情洋溢一些, 拿下来的机会不小。
但工作时间,强度,压力,估计都会大很多, 钱直接砍了四分之一... 阅读全帖
b******e
发帖数: 432
5
# For this function, I think the original one is semantically wrong.
# Based on the description, I think it always needs to print to
STDERR.
# However, when the option is not STDERR, it needs to print to STDOUT
as well.
#
# Besides, I may improve it by add some the restrict to input or add
more match pattern to the option, Ex:
# 1. I may trim the $option before compare.
# 1. The input option might be 'stderr', I may modify it to .
# 2. There might no input option, or no input message.
sub my_wri... 阅读全帖
a*****e
发帖数: 44
6
Not all big 4 experience has equal value. In tax for instance, if you are in
the individual tax group, the exit opportunity is limited to small cpa
firms and salary will be lower. If you are in the international, corporate,
hedge fund tax group, the exit opportunities are much better. In audit, if
you are in public client group for technology, financial services, consumer
products, your exit opportunities are good. If you are on small and private
clients, non-profit, education, your exit opportu
H**E
发帖数: 620
7
来自主题: CivilEngineering版 - Seepage question
the equation you used was for vertical flow only.
so strictly say, that equation can only apply for vertical(upward) exit
gradient(magnitude).
if you want to consider total exit gradient, you need to decompose the total
exit gradient into horizontal and vertical components.
for horizontal component, the critical exit gradient can no longer
calculated by the equation you mentioned.
d*******x
发帖数: 64
8
今天早晨上高速的时候直接上了左边的lane(共两条lane),这个地方有点特殊,首先我上高速
马上是个上坡,然后前面两三百米的地方左边快车道是exit,一般右车道速度还没起来就要换
道,并且下高速是个大下坡,速度刚提上去又要猛踩刹车,所以我就直接上了左车道,然后速度
比较低,大概30mile,
结果被警察拦下,说是improper turn,要缴一百多块的罚金,扣两点,然后或者下周出庭,说是
后面有高速的车,容易酿成事故
问题是我可以认为左边是exit,我本来就该减速了,两三百米,我可以认为我是我这个当成exit
吗?
请问像这种情况我要做pro-inguilty还是pro-guilty的申诉?是不是罚单开得过重了?会不会对
我的信用记录、包括找工作有影响?上庭我应该怎么申诉?
图像a点是我上高速的地方,exit是下高速交叉口,是从左边下高速
g****g
发帖数: 1828
9
来自主题: Physics版 - ODH
Question #2 is incorrect. The correct response is: B Your response was: D
[2] If a helium leak develops in your work area, proper evacuation
procedures would be:
[A] Pass the exit nearest the leak and use the next available
one if it exists.
[B] Activate and don your escape pack before ascending stairs or
ladders.
[C] Pass the exit nearest the leak, activate & don escape pack
prior to ascending the next exit.
[D] Immediately exit the nearest stairw
w*******y
发帖数: 60932
10
Link:
http://cgi.ebay.com/Camelbak-SixBak-200oz-Hydration-Pack/250819
CamelBak SixBak WaterBeast Reservoir Durable and Leakproof 33% Stronger
Polyurethane reservoir is tough enough to drive a truck over. Hydro-Guard
Reservoir features Anti-Microbial Technology which continuously inhibits the
growth of bacteria and fungus on reservoir and delivery tube surfaces.
Massive external Omega Access port allows for quick and easy filling,
cleaning and adding ice. All Omega Reservoirs are large enough for... 阅读全帖
w******s
发帖数: 16209
11
来自主题: _Stockcafeteria版 - 卖信号基本出来了.
I think even if LZ's system only pick one side entry (without exit) is a
probably valid system or signal. for exit, you could define your own exit
strategy, could be trailing stop, target stop, exit at oversold/overbought .
.. etc..
E*V
发帖数: 17544
12
Crimea Referendum: Exit Polls Say 93 Percent Of Voters Support Union With
Russia, Per RIA
http://www.reuters.com/article/2014/03/16/us-ukraine-crisis-idU
MOSCOW, March 16 (Reuters) - About 93 percent of voters in Ukraine's Crimea
region supported union with Russia on Sunday, Russian state news agency RIA
quoted an exit poll as showing.
Polling stations in Crimea closed at 1800 GMT. Another Russian news agency,
Interfax, said voter turnout had exceeded 80 percent.
The exit poll cited by RIA was c... 阅读全帖
S*********y
发帖数: 481
13
Movie theater gunman had been stockpiling arsenal
By Jason Sickles, Yahoo! | The Lookout
AURORA, Colo. — The gunman who blasted his way through a packed movie house
early on Friday, killing 12 people and injuring 58 others, had apparently
been planning his attack for weeks.
"In the last 60 days he purchased four guns at local metro gun shops, and
through the Internet he purchased over 6,000 rounds of ammunition," Aurora
Police Chief Daniel Oates said Friday night.
The suspect, 24-year-old former... 阅读全帖
YX
发帖数: 21
14
Eight things to do in a sinking car
(from: http://www.wikihow.com/Escape-from-a-Sinking-Car)
http://www.howcast.com/videos/117114-How-to-Escape-a-Car-Sinkin
http://www.youtube.com/watch?v=UZuZgSQZJ9g&feature=player_embed
Any car accident is frightening, but an accident in which your vehicle is
thrown into the water, with you trapped inside, is absolutely terrifying.
Such accidents are particularly dangerous due to the risk of drowning and in
Canada alone, 10 percent of drowning deaths can be att... 阅读全帖
w*********g
发帖数: 30882
15
中国销毁了三批进口美国转基因玉米
来源: xxz3393 于 2013-10-27 22:53:09 [档案] [博客] [旧帖] [给我悄悄话] 本文
已被阅读:185次 字体:调大/调小/重置 | 加入书签 | 打印 | 所有跟帖 | 加跟贴 |
查看当前最热讨论主题
Could the global tide in support of GMOs be turning? Anew report reveals
that the formerly pro-GMO Chinese government, one of the largestconsumers of
GMO food crops in the world, is beginning to crack down on GM cornshipments
from the US that have not followed appropriate biosafety regulations.
全球支持转基因作物的大潮正在调转潮头吗?据最新消息披露,全球最大转基因作物消
费国之一,此前对转基因作物持支持立场的中国政... 阅读全帖
w*********r
发帖数: 42116
16
来自主题: Military版 - GM发财了,怎么政府又亏了?
Government sells remaining stake in GM
DETROIT (AP) — The U.S. government ended up losing $10.5 billion on the
General Motors bailout, but it says the alternative would have been far
worse.
GM stock hits new high as government exit nears Associated Press [$$] U.S.
Remaining Stake in General Motors The Wall Street Journal Government Motors
no longer — Treasury sells GM stake MarketWatch US sells last shares in GM,
exits historic rescue AFP U.S. plans to exit GM stake by year-end, may lose
$10 bil... 阅读全帖
r*******g
发帖数: 32828
17
来自主题: Military版 - 性骚扰实录[重口慎入] (转载)
【 以下文字转载自 Joke 讨论区 】
发信人: kejer (kejer), 信区: Joke
标 题: 性骚扰实录[重口慎入] (转载)
发信站: BBS 未名空间站 (Tue Apr 8 17:10:00 2014, 美东)
发信人: wookao (六味地黄丸), 信区: Game
标 题: 性骚扰实录[重口慎入]
发信站: BBS 未名空间站 (Tue Apr 8 17:00:03 2014, 美东)
事情经过这样,去dmv办事,办事员Mr. A办了我的忙,要不可能会罚款1k多。我说那感
谢你,要不请你吃个饭什么的。Mr. A说不可以,我不能和你吃饭,不能收你任何东西
,哪怕一张卡片,要不我们出去抽支烟。我说可以,从dmv旁边的一个emergence exit
出来有一段很黑的通道。然后,我们一边走一边聊,我在左边,Mr. A在右边,在自我
介绍的时候,他和我握手,握手的时候,把握得手往他的JJ上按,我以为是不小心,就
把手挪开了,然后,出来聊了一会,我有了点戒心,没怎么透露自己的信息。中间又出
来一个人在那抽烟,有了点安全感。然后道别的时候,还要求我进去和他走那个... 阅读全帖
t***h
发帖数: 5601
18
来自主题: Military版 - 苏格兰公投有国际观察团吗?
没有国际观察团, 连出口民调都没有.
Scottish independence referendum: with no exit polls isn't there a
democratic deficit?
The absence of an exit poll means we'll be robbed of a post-vote analysis of
how this momentous referendum was decided
James Ball, theguardian.com, Thursday 18 September 2014
Exit polls are the best form of voting-related data we can ever get our
hands on. They're collected by large numbers of researchers standing outside
polling stations and asking tens of thousands of people how they voted... 阅读全帖
t***h
发帖数: 5601
19
Scottish independence referendum: with no exit polls isn't there a
democratic deficit?
The absence of an exit poll means we'll be robbed of a post-vote analysis of
how this momentous referendum was decided
James Ball, theguardian.com, Thursday 18 September 2014
Exit polls are the best form of voting-related data we can ever get our
hands on. They're collected by large numbers of researchers standing outside
polling stations and asking tens of thousands of people how they voted - as
well as colle... 阅读全帖
f******d
发帖数: 2394
20
来自主题: Military版 - 中国怎么还没崩阿
心虚了?不是告诉你了么中崩元年是2013年。看中国经济就看房价。2013年是顶点。现
在是缓坡下降(听说过股市里的尖底圆顶么?)。一旦加速下降,就是主跌浪开始了,
学名叫中国金融危机。当然这会是美国的叫法,中国会把它叫做第二次金融危机(暗示
是美国引起的)。你可以很快验证看看这名词。如果你真好学的话,下面给你贴一篇教
学文章。其中的几个名人,Bill Gross,是太平洋基金的创始人之一,也是中投2011年
雇的朱长虹的老板的老板。George Soros,大名鼎鼎,就不多说了。Michael Diekmann
,世界最大的保险公司的老板。这篇文章里有很多信息,都和现在的金融市场和即将发
生的金融危机相关。
Fall of the Bond King: How Gross Lost Empire as Pimco Cracked
By Mary Childs - Dec 3, 2014
Bill Gross, the 70-year-old king of bonds, rushed through the offices of his
$2 trillion empire on a ... 阅读全帖
j*******n
发帖数: 10868
21
你看的是没心版的exit polls?
下面是正版的exit polls,基本上学历越高选老太越多,从college开始老太就领先,
到postgraduate就遥遥领先了。当然你可以说知识越多越反动
http://www.nytimes.com/interactive/2016/11/08/us/politics/election-exit-polls.html

LA
D**s
发帖数: 6361
22
选战前谁敢说支持trump,直接会被左派围攻的……
[在 jiangyoun (果果新品发布-iQuit) 的大作中提到:]
:你看的是没心版的exit polls?
:下面是正版的exit polls,基本上学历越高选老太越多,从college开始老太就领先,
:到postgraduate就遥遥领先了。当然你可以说知识越多越反动
:http://www.nytimes.com/interactive/2016/11/08/us/politics/election-exit-polls.html
b*****d
发帖数: 61690
23
来自主题: Military版 - Google被Metoo了
report that the company gave a lucrative exit package to a high-profile
executive accused of sexual harassment.
The tech giant is now facing pressure to take a tougher stand on harassment
and abuse in the workplace, in what could be a test of the #MeToo movement's
influence in male-dominated Silicon Valley.
The New York Times bombshell about Google's workplace culture also comes at
a difficult time for the internet search giant, which is already facing
controversy on a number of fronts.
The Time... 阅读全帖
f******o
发帖数: 2469
24
来自主题: Military版 - MAGA,美国最大煤矿倒闭
Companies
Top ten coal-mining companies in the United States, 2014
Rank Company Million short tons/Year Percent of total production
Notes
1 Peabody Energy 189.5 19.0% Declared chapter 11 bankruptcy
April 2016; exited bankruptcy April 2017[30]
2 Arch Coal 135.8 13.6% Declared chapter 11 bankruptcy January
2016; exited bankruptcy October 2016.[31]
3 Cloud Peak Energy 85.8 8.6% Declared bankruptcy in 2019 [32]
4 Alpha Natural Resources 80.1 8.... 阅读全帖
p*********3
发帖数: 8525
25
来自主题: Military版 - Cupertino 辱华了 转遍各大湾区群
This happened on today’s afternoon around 3 PM. My husband and I went to
shop for some fruits and vegetables in a local store called Oakmont Market,
located on 19944 Homestead Rd Cupertino. I told my husband that I would go
in by myself, and he could wait for me in the car, as we are trying to
reduce the amount of of interaction with the public. I saw some people there
wearing a mask but I was not, as recommended by public health guidelines,
as I have not been ill or symptomatic. I tried my best... 阅读全帖
m******8
发帖数: 2153
26
Exit polls from this week’s US mid-term elections suggest that almost a
third of gay voters backed the Republican party.
The figure, gathered by CNN, found that only three per cent of the 17,504
voters surveyed in the exit polls said they were gay, lesbian or bisexual.
Thirty-one per cent of these said they voted Republican.
In a similar 2008 poll, 27 per cent backed the party. During the 2006 mid-
terms, 24 per cent of the gay voters surveyed supported the Republicans and
23 per cent supported ... 阅读全帖
g********d
发帖数: 4174
27
来自主题: QueerNews版 - newt is projected to win in SC!
http://www.huffingtonpost.com/2012/01/21/newt-gingrich-win-sout
Last-Minute Decisions
Exits polls from South Carolina suggest we are heading to a victory for Newt
Gingrich fueled largely by voters who made their minds up in the last few
days.
According to CNN, Gingrich is projected to get 38 percent of the votes, Mitt
Romney will get 29 percent, Rick Santorum will get 17 percent and Ron Paul
will get 15 percent. The network is not yet projecting a winner, in large
part because the number in the ... 阅读全帖
E*V
发帖数: 17544
28
来自主题: RisingChina版 - GM发财了,怎么政府又亏了?
Government sells remaining stake in GM
DETROIT (AP) — The U.S. government ended up losing $10.5 billion on the
General Motors bailout, but it says the alternative would have been far
worse.
GM stock hits new high as government exit nears Associated Press [$$] U.S.
Remaining Stake in General Motors The Wall Street Journal Government Motors
no longer — Treasury sells GM stake MarketWatch US sells last shares in GM,
exits historic rescue AFP U.S. plans to exit GM stake by year-end, may lose
$10 bil... 阅读全帖
l****z
发帖数: 29846
29
Hostess's Second-Largest Union Rejects Labor Deal
By RACHEL FEINTZEIG
Hostess Brands Inc.'s second-largest union voted to reject a revamped labor
deal, sending the company back to the drawing board as it scrambles to find
a way out of bankruptcy.
The maker of Twinkies and Wonder Bread on Friday saw its largest union, the
International Brotherhood of Teamsters, narrowly vote to accept the new
collective bargaining agreements but failed to get the Bakery, Confectionery
, Tobacco Workers & Grain Mi... 阅读全帖
l****z
发帖数: 29846
30
Policeman on Brown: 'He Grabbed My Gun, He Twisted It, Pointed at Me'
November 25, 2014 - 12:26 PM
By Brittany M. Hughes
(CNSNews.com) – One day after fatally shooting Michael Brown, an unarmed
black teenager, Ferguson, Mo., police officer Darren Wilson, who is white,
gave his account of the incident to two detectives from the St. Louis County
Police Department, explaining in detail how Brown attacked him through the
police car’s open window, wrestled for the officer’s gun, and then pointed
it... 阅读全帖
m****g
发帖数: 2215
31
来自主题: USANews版 - Arizona有没有什么情报?
http://dcourier.com/news/2016/mar/22/courier-exit-polling-shows
Courier exit polling shows Cruz leading in Prescott, Prescott Valley.
Exit polls conducted by The Daily Courier on Tuesday, March 22, showed Sen.
Ted Cruz of Texas leading businessman Donald Trump 50 percent to 33 percent
overall, with Ohio Gov. John Kasich garnering just 8 percent among voters
polled.

发帖数: 1
32
来自主题: USANews版 - Who voted for Hillary?
Who voted for Hillary?
54% of women
89% of black people
66% of Latinos
65% of Asians
49% of college graduates
58% of postgraduates
53% of people making under $50k a year
84% of liberals
89% of Democrats
52% of moderates
55% of unmarried people
67% of the religiously unaffiliated
57% of first time voters
In total, more than 65 million Americans - or about 2.8 million more than
voted for Trump.
*of those who voted, according to the exit polls. [1]
Footnotes
[1] 2016 election results: Exit polls
h... 阅读全帖
T*********I
发帖数: 10729
33
Death Spiral: Aetna Exits Obamacare Exchanges Citing $700 Million in Losses
Health insurance giant Aetna said it will exit all Obamacare exchanges in
2018, citing significant losses.
http://www.breitbart.com/big-government/2017/05/11/death-spiral-aetna-exits-obamacare-exchanges-citing-700-million-in-losses/
d******k
发帖数: 76
34
来自主题: USANews版 - Google被Metoo了 (转载)
【 以下文字转载自 Military 讨论区 】
发信人: brihand (brihand), 信区: Military
标 题: Google被Metoo了
发信站: BBS 未名空间站 (Sat Oct 27 15:59:31 2018, 美东)
report that the company gave a lucrative exit package to a high-profile
executive accused of sexual harassment.
The tech giant is now facing pressure to take a tougher stand on harassment
and abuse in the workplace, in what could be a test of the #MeToo movement's
influence in male-dominated Silicon Valley.
The New York Times bombshell about Google's workplace culture a... 阅读全帖
t******6
发帖数: 9093
35
谢谢你分享,我住在rockville,上班在baltimore,你明白的
我说的很清楚:呆在路上,除非你知道如何出去和停下(显然你知道你的exit,我对我
的exit也很清楚,你也知道I95和495路边并没有很危险的沟,路肩很宽)。
你可以有时间走走I81和 I40(WEST VIG 和 GA山区),看看路边的陡坡和狭窄的路肩,看
看那里陡峭的ramp和常年的施工路障,你肯定会慎重考虑在一个大雨视线不好的天气尝
试从一个陌生的高速exit出去或停在路肩的。
所以,我的建议是:呆在路上,除非你知道如何出去和停下。
暴雨一般不会持续30min以上和30mile以上的。半小时或一小时后你将驶出暴雨区。这
是一个很重要的常识。I95DC-BALTIMORE最大的雨经常在exit30-35之间,你可以留意看
看。今年在DC-baltimore之间上下班时间没有遇到正真的大暴雨。我在florida飓风里
开过30min,比这里的雨大得多。
关于你说的:“大雨不停就一直开着,即使该下了也不敢下。如果所有的人: 都是这种
开法,还真是见鬼了”
我的回答还是:呆在路上,除非你知道如何出去和停下

s*****o
发帖数: 1262
36
来自主题: Automobile版 - 我刚与死神擦肩而过
are u driving a small car?
i was cut in many times when i was driving a small car. and there is one
time that is VERY dangerous. a young lady in front of me getting off
from
the free way suddenly turning back via the zebra line area (because she
realize that she get the wrong exit). and i see a SUV driving all the
way
towards me. from teh exit to the right lane (where i am) is very cloase
and when i noticed this she is REALLY close to me (i feel like few
meters since i am not pay attention to my... 阅读全帖
l**g
发帖数: 2859
37
来自主题: Automobile版 - 现在路上的asshole怎么越来越多
我最近接连两次在高速出口碰到从右lane强行超车的傻X。
我们这里最右边有exit专门的lane,我在最右边的正常的行车道以60-65mile的速度开
,在exit快到尽头的时候,我右边的lane全都是白色实线了,竟然有傻x从exit lane强
行从右边强行超我要插进行车道的lane,而且这样的傻X竟然让我接连两天都碰到了。。。走错路,也不能这样换lane啊。。。
i****x
发帖数: 17565
38
我查了一下,校车安全标准还是70年代定的。
1977 safety standards
The focus on structural integrity spurred new requirements in the U.S.
Federal Motor Vehicle Safety Standards for school buses, most of which
became applicable for school buses on April 1, 1977. These standards are
still in effect today.
Standard No. 217 - Bus Emergency Exits and Window Retention and Release (
Effective September 1, 1973)
This established requirements for bus window retention and release to reduce
the likelihood of passenger ejection ... 阅读全帖
q****q
发帖数: 4263
39
I have few rules for lane change
1. stay aware of the surrounding regardless whether you need to change lane
or not
2. quality shoulder check, even multiple quick shoulder checks to make sure.
3. know your route plan, which exit you gonna take. so that you can change
lane one mile or even more before your exit
4. for non exit intention lane change, change when you are 100% confident.
otherwise think about your family first
5. show your turning light at least 2 seconds ahead so even there's car i... 阅读全帖
a******7
发帖数: 7936
40
来自主题: Automobile版 - 昨天下班遇到的傻×
随手搜一个密歇根的交规,教大家怎么下高速:
Leaving a Freeway
Most freeway exits have a special deceleration lane to slow
down in when exiting the freeway. Look ahead for exit ramp
signs you want and the lane you must use. Check in front,
behind, and to the side for traffic. Signal your intention early and
then move into the proper lane.
Z***a
发帖数: 124
41
A. Begin test:(Score once)
Unable to start vehicle 3
Failed to release park brake 3
failed to fasten seat belts 16
failed to wear glasses 16
B. Enter course
Failed to use proper signal 2
Clutch/gear control 2
Crossed solid traffic line 2
drove in improper lane 5
C. Back up
Failed to observe traffic ... 阅读全帖
E****a
发帖数: 3088
42
Let 老公 学修车
if 学会了 then exit
else 另找个老公
if 新老公有钱 then exit
if 新老公会修车 then exit
else return
h*****g
发帖数: 944
43
来自主题: JobHunting版 - 再问个C programming考试的题目
Q1) which of the following statements causes the execution of a program to exit
from the innermost loop?
a) abort
b) break
c) continue
d) exit
是应该选break还是exit?
Q2) which of the following is the correct form for a macro to find the maximum of two variables?
a) #define MAX(A,B) ((A>B)?A:B)
b) #define MAX(A,B)=((A>B)?A:B)
c) #define MAX(A,B)=((A>B)?A:B);
d) #define MAX(A,B)==((A>B)?A:B);
C***U
发帖数: 2406
44
#include
#include
#include
#define MAX 10000
int main(int argc, char *argv[]){
std::vector numbers1;
std::vector numbers2;
int k = atoi(argv[3]);
if(argc < 4)
std::cout << "we need 2 files and a number." << std::endl;
std::cout << "we need find " << k << "th number" << std::endl;
std::cout << "reading first array of numbers ..." << std::endl;
std::ifstream f1(argv[1]);
if(!f1){
std::cout << "cannot open... 阅读全帖
f*******r
发帖数: 976
45
来自主题: JobHunting版 - 问一道airbnb的面试题
题目就是external sort的思想。统计单词的次数,明显用map。注意文
件很大,要用long,以免溢出。
在你读文件并且增加这个map时,内存不够用,这是你要把临时结果写入临时文件。你
可以设计一个threshold,比如1 billion,当map的size达到这个值时,你就把map和临
时文件merge到另一个临时文件里。最后再把这个文件rename到原来的临时文件。再把
map清空,继续读原文件直到结束。 C++代码如下:
// Split the string into words that consists of a..z and A..Z.
void split(const string &s, vector &res) {
int beg = -1;
for (int i = 0, e = s.size(); i < e; ++i) {
if ((s[i] >= 'a' && s[i] <= 'z') || (s[i] >= 'A' && s[i] <= 'Z')) {
if (beg == ... 阅读全帖

发帖数: 1
46
来自主题: JobHunting版 - 问个startup的RSU问题
多谢。
你说的 exit 的 意思是被收购或上市吗?
现在本菜的问题是:
假如 Series A RSU $250K,假设 Series A preferred stock 的价格是每股
$2.5, 那么在 A 轮 一共给了 100K 的 shares of Series A preferred stock。
那么这 100K 的 shares在exit的时候就不一定是100K了是吗?比如exit的时候
每股变成了 $5, 那么公司会把以前的 100K 股票 给我换成 50K 股, 因为这样总钱数
还是$250K.
a****e
发帖数: 9589
47
How to Survive a High-Rise Hotel Fire
Always treat a hotel fire alarm seriously, and exit following hotel
procedure. If the fire is nearby, use the following procedure.
1. Feel your hotel room doorknob with the back of your hand.
If the doorknob is hot to the touch, go to step 2 and then skip to step 5.
If it is not hot, follow the steps in order.
2. Partially fill the bathtub with cold water.
Soak towels, washcloths, bedsheets, and blankets in the water. If the water
is off, use water from the ... 阅读全帖
x*******g
发帖数: 1363
48
No. what you have is pretty typical one.
It sounds like the pipe after the bath tub has some congestion. Since your
bath tub is the last exit, so it will eventually go down -- that is why you
can feel it in the bath tub.
Depending how far it is from your bath to the final exit. My house has 70
feet from master bedroom to the exit, so 15 feet may not get to the
congestion spot.
o******p
发帖数: 254
49
来自主题: NextGeneration版 - 三个半月的宝宝坐飞机需要买票吗?
正在订票,看到航空公司这样的规定:
Children unable to sit upright with the seat belt fastened must be carried
in an FAA approved infant seat if not being held by an adult. Continental
does not provide infant seats.The infant seat must be secured in an aircraft
seat and cannot be held in an adult's lap. The infant seat must remain
properly secured to the aircraft seat at all times. An infant seat cannot be
used in an exit row or in the row immediately before or after an exit row.
Passengers traveling with infants... 阅读全帖
y*******h
发帖数: 1626
50
今天我觉得是自己很倒霉的一天,伤心到内伤,到现在还没有过来,来求安慰了。本来
选择题做的还成,有好几道很tricky的题目都被我发觉了,做到simulation,开始是我的
悲剧了.本来这部分包含六道大题,写完第一个,想找下一个,找不到next,就觉得
应该点击exit (因为之前的三部分选择题都是这样的,做完一部分,就exit,下一部分
就出来了),可能是我来想当然了,太累了,点了exit,电脑出来一行字问yes or no,
我连看到没有看,就默认为问我自己是不是要到下一部分题目,然后就yes,之后很悲
剧的看到电脑说我的考试end了。我人一下子就傻了,真是当头一棒,想想过考试失败
的烂分数,但是没想到自己竟然以这么愚蠢的方式自杀了考试,神啊,救救有娃的大妈
吧!有孩子的大妈伤不起,每天晚上娃睡了,熬夜看书,我容易么,555,就这样结束
了我的考试,真心觉得自己很失败。
今天还特别冷,下雪了,我没有开车,说好了老公下班了来接。可谁知道,我自杀
了我的考试,提前一个多小时,加上老公说本来就会晚一个多小时,我就一个人站在大
厅里等了三个多小时,因为手机没电,只能望着外面发呆,看着... 阅读全帖
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)