由买买提看人间百态

topics

全部话题 - 话题: class
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
y0
发帖数: 231
1
来自主题: Programming版 - enum class的一个问题
怎么表达两个enum class直接的逻辑关系,例如
enum class Subset { a, b, c};
enum class Superset {a, b, c, d, e};
就是说第2个enum class是第一个的超集,但是enum class 不支持继承
怎么办?
x******a
发帖数: 6336
2
来自主题: Programming版 - 请教C++class
I need a class with some thing like
class foo{
std::string country; //an attribute
std::vector somefactors; //really need for calculation
...
}
The data members currency and somefactors are uniquely determined by the
country with a fooparameters class contains the map from country to the rest.
The reason I don't want to implement as a method like get_factors() is that
in reality I need to run large number of Monte-Carlo simulation
using somefactors and I really need the speed.
currently ... 阅读全帖
k****y
发帖数: 423
3
最近需要用MHC Class I deficient mice 和 MHC Class II deficient mice,B6
background的,以前没用过,实验室也没人做,所以连order 老鼠都不是很确定。我查
了一下Jackson lab,似乎找到了class II deficient: http://jaxmice.jax.org/strain/003584.html,但是class I deficient (B2M-/-?)的好像都是cryopreserved的?有熟悉的大大可以指导一下哪个是吗?上面那个class II deficient的找对了吗?
谢谢!!
s******n
发帖数: 2279
4
DeLengocky: North Texas needs more residency slots, not M.D. classes
Posted Monday, Oct. 11, 2010 2
Comments Print Share Buzz up!Reprints
Topics: North Texas, Texas, Texas Education Agencies
Special to the Star-Telegram
When the Texas Legislature convenes in January, it might act on a proposal
from the University of North Texas Health Science Center (UNTHSC) to
establish another medical school -- an allopathic or MD-granting school
tentatively called UNTMD -- on its Fort Worth campus.
The UNTM... 阅读全帖
l*******8
发帖数: 290
5
来自主题: MedicalCareer版 - THE INFOR OF DR PUMA'S FREE CS SAMPLE CLASS
HI, GUYS,
DR. PUMA APPROACHED ME AND ASKED ME TO SHARE THE INFOR ABOUT HIS SAMPLE
CLASS.
HE WOULD LIKE TO HOST A CS SAMPLE CLASS AT 10:00 PM EASTERN TIME ON MARCH
11TH. IT'S A FREE SAMPLE CLASS. ONE OF THE ATTENDANTS WILL BE CHOSEN TO
PRESENT A CASE. HE WOULD ANALYZE HIS OR HER PERFORMANCE AND GIVE
CORRESPONDING SUGGESTIONS. AND I THINK HE WOULD BE VERY HAPPY TO ANSWER ANY
QUESTIONS ANY ATTENDANTS HAVE IN THIS SAMPLE CLASS.
HE WILL HOST 2 SESSIONS, 15 SEATS EACH. THE FIRST ONE IS ON MARCH 11TH.I... 阅读全帖
j********t
发帖数: 201
6
To those who have sent inquiries into whether Bancovqa would have class or
not for the
fall, I have my sincere appology for answering you so late due to being so
busy recently.
At this moment, we are considering having a small class for students winthin
Great New York area and the class may start late in October since quite a
few students have been waiting for our decision till now.
For those who really to find a job in the pharmaceutical industry, I
strongly encourage you to apply for a free tr... 阅读全帖
w*******y
发帖数: 60932
7
I went to Lowe's today and found out about a Class Action suit regarding
drywall from Lowe's. Please DO NOT ABUSE THIS. Only make a claim if you
indeed purchased the defective drywall from Lowe's.
Highlights:
- Drywall purchased or installed from Lowe's in your home prior to 7/27/10
is eligble
- $50 in Lowe's GC available for no proof of purchase or damages
- $250 in Lowe's GC available if you have proof of purchase prior to 7/27/10
- $2000 in Lowe's GC PLUS $2,500 in cash if you can independ... 阅读全帖
w*******y
发帖数: 60932
8
Linky: Link:
http://www.cerealsettlement.com/
All Claim Forms must be submitted on or before June 3, 2011. Click here to
submit a Claim Form online:
https://cert.gardencitygroup.com/kel/fs/newClaim
. Click here to download a Claim Form.
Overview Of The Proposed Settlement
A proposed settlement has been reached in a lawsuit involving Kellogg, the
company that makes Frosted Mini-Wheats. The Lawsuit claimed that Kellogg
falsely advertised that its Frosted Mini-Wheats cereal improved kids
attentiven... 阅读全帖
w*******y
发帖数: 60932
9
Ridata 8GB SDHC Class 10 Lightning Series Flash Memory Card for $12.99 +
Free Shipping
A-DATA 32GB SDHC Class 10 Flash Memory Card for $44.99 + Free Shipping
A-DATA 8GB MicroSDHC Class 6 Flash Memory Card with SD Adapter for $13.99 +
Free Shipping
w*******y
发帖数: 60932
10
Kingston 8 GB microSDHC:
http://www.amazon.com/Kingston-microSDHC-Memory-SDC4-8GB/dp/B00
#productPromotions" rel="nofollow" target="_blank" onclick="_gaq.push(['_
trackEvent', 'thread', 'click', '3822628 - kingston-8-gb-microsdhc-class-4-
flash-memory-card-sdc48gb-7.95-fsss-amazon']);">Kingston 8 GB microSDHC [
Kingston 8 GB microSDHC:
http://www.amazon.com/Kingston-microSDHC-Memory-SDC4-8GB/dp/B00
#productPromotions" rel="nofollow" target="_blank" onclick="_gaq.push(['_
trackEvent', 'thread', '... 阅读全帖
w*******y
发帖数: 60932
11
Sony KDL55NX720 55" Class Widescreen 3D LED HDTV -1080p $1399 w/FREE
SHIPPING.
The Sony KDL55NX720 is the winner of CNET'S 2011 Editors Choice Award. This
award from CNET was based on value.
Here is the review from CNET.
Link:
http://reviews.cnet.com/8301-33199_7-20117244-221/samsung-pnd70
Here is a link to tigerdirect. $1399 w/free shipping.
Link:
http://www.tigerdirect.com/applications/SearchTools/item-detail
Sony KDL55NX720 55" Class Widescreen 3D LED HDTV
The elegant Sony KDL55NX720 ... 阅读全帖
w*******y
发帖数: 60932
12
Apply $500 off code NXX57580 @ checkout.
Link:
http://www.tigerdirect.com/applications/SearchTools/item-detail
Price comparison:
http://www.google.com/products/catalog?q=LG 65LW6500&hl=en&prmd=imvns&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&ix=seb&ion=1&biw=1920&bih=955&um=1&ie=UTF-8&tbm=shop&cid=10936721919636310571&sa=X&ei=WcNpT4HsGcbegQfGtNnVCQ&ved=0CJYBEIIIMAA


quote



LG 65LW6500 65" Class LED 3D Cinema HDTV
If you want the depth, realism and entertainment of 3... 阅读全帖
w*******y
发帖数: 60932
13
Shipping to me was $9.06
Link:
http://www.tigerdirect.com/applications/SearchTools/item-detail
$50 rebate:
http://static.highspeedbackbone.net/rebates/TD-5917 US.pdf
Samsung S23A350H 23" Class Widescreen LED HD Monitor
Samsung's LED monitors deliver a visually stunning picture quality that
leaves you speechless. The Samsung S23A350H 23" Class Widescreen LED HD
Monitor makes colors more rich and the action more real than you've dreamt
possible. Let the story come to life with vivid colors and cry... 阅读全帖
D***m
发帖数: 129
14
来自主题: Military版 - 正在联系律师打class action lawsuit
Jimmy Kimmel 伤害了我们华人,必须作出赔偿和受到惩罚。
在美国打官司没有什么神秘的。律师和码工一样多。
有兴趣的朋友可以Google "class action attorney". 然后把事情的经过详细客观的发
给多个律师。收到回音后在和律师近一部谈。
完全可以几个case一起上。比方说洛杉矶的华人一个class,纽约的华人一个class。华
人小孩和家长一个class,等等。
这样一来就够Jimmy鸡毛忙了。
w*********r
发帖数: 42116
15
通常说的美国upper class是middle class的上端,upper middle class。华人把upper
class和rich混淆了。
m*********a
发帖数: 3299
16
the tax rate of doctor with income $500K is higher than the hedge fund
manager with income $4,500,000,000. No wonder the tax burden of middle class
is so high. 1930s, the tax rate for income more than $2 millions ($100
millions in current dollar value) is 81%. At that time the tax rate of
middle class is much lower, around 10%. So the rich is successful to merge
the superrich's tax bracket with middle class.
w**d
发帖数: 956
17
来自主题: USANews版 - Middle class needs to pay more tax
There have been countless debates regarding who should pay more tax and here
is the simple argument that middle class needs to pay more tax.
The poor does not pay tax so they are out. The rich has always been paying
too much so their tax needs to be cut, the rich also make huge sacrifice to
invest their hard earn money to create jobs that middle class is desperately
dependent on to feed their family. So it is middle class's fair share and
moral requirement to pay more tax.
Remember, government ... 阅读全帖
f******t
发帖数: 7283
18
来自主题: Automobile版 - 大奔C class真是让人吃惊啊
C class是被列为entry level的luxury sedan。
luxury这个就很主观了,见仁见智。但对于“entry level”,MB可真是严格落实到家
了。
首先steering方面,C300是最便宜的,所以MB给entry level成连power assist都不是
vehicle speed sensitive的。没记错的话好多买菜车早就是speed sensitive 的
power assist了吧。
其次就是刹车方面,除了AMG之外,全线C class前后轮用的还是single-piston
floating的碟刹。虽说现在常见的two piston fixed类型成本要高些,并且作为例外也
的确存在口径巨大的single piston碟刹(M3用的);但C class这个普通的single
piston实际上跟corolla/focus这些车没本质区别,并且这种设计天生就有sticking
failure的缺陷。
所以我一直有这样的印象:C class(除C63AMG外)卖的只是个外壳而已。
t*********7
发帖数: 3398
19
前奏:
自从我的suv被撞以后,我就走上了开rental cars的不归路
保险给我1个月的时间免费租任何每天价钱150一下的enterprise车,既然如此,正好给
我个机会试试估计永远不会买的美国车
第一辆车是白色的2010款c300,我开了3天,感觉还不错,比我想象中的好多了。
handling都很好,可是后面位子比较小,想了想,拿回去换了
第2辆是象牙白的cadillac dts,2011年的,才2000多mi。。。这辆车开起来真是很舒
服,前排座位有热冷加按摩,方向盘也是有heated的功能。导航方面是触摸式的,我倒
是没怎么用。。。音响还不错,bass不够。这辆车挺耗油的,我最喜欢的是他的shift
nob,全木的,摸起来很舒服。。。 后座也很好,不过我认为前座比较舒服
这辆车开了2天,太太认为不好看,我也觉得是,还是拿回去换了
换之前我上网research了一下,我看到他们有三辆美国pony class的车,dodge
challenger, chevy camaro coupe, and ford mustang convertible。我从来没有开过
美国车,但是在不... 阅读全帖
T**********2
发帖数: 2198
20
来自主题: Automobile版 - 奔驰C-Class - 最接近完美的小型sedan
先谈谈我上一辆车奔驰C230 Sport,最大的亮点是美学设计,安全性,舒适性,动力和
操控性之间的完美平衡。对比宝马3er,好的地方是更加refined更加well-rounded,不
好的地方是动力不如三系。对比奥迪A4,好的地方是操控更加流畅因为是后驱,不好的
地方是风噪路噪大于A4内饰也不如A4,也许Luxury款会好一些。
纯高速不超过80mph的平均车速可以得到28+mpg,城市里大概20mpg上下。质量很好,非
常DIY-friendly,整车设计简洁但是扎实。之前根本没有期望自己能DIY奔驰,只有试
了才知道奔驰initial design的水平。我开这辆C230是比较凶的,感觉这辆车的承受力
底线比较低,无需像3er和A4那样总要考虑对车需要多gentle和该有多aggressive
后来分别开过几次2010/2011/2012款的C-Class,感觉是相同的,没有过多的惊艳,但
却挑不出毛病。整车设计用材和装配工艺一如既往的扎实,定价非常合理,花的每个
DOLLAR都有实实在在的价值。另外,这次团购跟DEALER扯皮的过程中,对方告诉我其实
C-Class是赚钱最少... 阅读全帖
t**********3
发帖数: 12623
21
来自主题: Automobile版 - 奔驰S-Class真正牛逼的地方
第一次坐S-Class就被堡垒感震撼了。
S-Class开始流行都是赖总的功劳,那个年代都是S320和S500,美规欧规都有。
高速上跑200km/h还稳若磐石的车不只S-Class,但是在烂路上的ride quality没有几个
能与其媲美。
昨晚在一个路口等红灯见到一小段烂路,交叉方向三辆车驶过,一个Acura TL,司机刻
意减速到大概20mph,但是TL悬挂偏运动,底盘过滤有限,在车里一定异常颠簸(突然
很同情地想起BMW)。第二辆是个Camry,车速30左右,悬挂很软,应该过滤效果不错,
但是整个车身在歇斯底里地前后不规则颠簸,看上去有种失控感。然后变了黄灯时,有
辆S-Class冲过来,车速加到40左右,过这些坑洼时看到车身前后水平,整体上下轻柔
地浮动一两下,而悬挂在疯狂地做工吸收过滤路面的坑洼,可以很清晰地看到前后轮在
悬挂带动下上下弹跳却把shock阻止在车身之外。
f******t
发帖数: 7283
22
不少用户都有这样的感觉:W212 E class前排中控台在车子内饰整体中看来有点怪异:
整个区域显得很空旷,中央扶手箱前面除了导航那颗旋钮和另外几个小按钮之外是一片
空白的。点烟器和cup holder被一整块大的滑动挡板盖着,占据了整个中控台剩余的所
有地方。这么一大块空地,完全能放得下换挡把手,并且那个地方对于轿车来讲安置换
挡杆也是很典型的做法。
但现在换挡杆跑去了方向盘那里,留出这么一大块地方出来,给人感觉就是实际上这个
地方有别的用途,只是卖给我们的型号不带这个功能而已。实情是:这个车型在设计时
候,首先考虑的是出租车的用途。比如说有没有发现E class的车尾箱特别深?(比5系
/A6/GS都明显深很多)——导致E class后座腿部位置比较窄。这是因为设计的时候考
虑到这车子主要用途是出租车,因此后背箱要足够大放得下旅客的国际航班托运行李。
换挡杆也是另外一个例子。看下图,因为E class的面板安排得很满(由上到下分别是
导航屏幕、空调口、空调控制和音响等等),所以出租车计价表除了红箭头指的位置之
外,在其他地方是无法安装的。假如换挡杆在中控台那里,那势必直接挡在计价... 阅读全帖
f******t
发帖数: 7283
23
假如E class真的为了“舒适”的话,就不会为了搞个硕大无比的后尾箱,而把后座脚
部空间弄得是同级别车子里最窄的。
另外我上面那个链接里还能看到,E class不光是后座脚部空间是全级最窄的,甚至连
前座的脚部空间也是全级最窄的,更离谱的是E Class的前座脚部空间比C class还要窄
(E:41.3; C:41.7)。
你买车就喜欢买辆后尾箱巨大,并且乘客舱同级最窄,甚至一些地方比compact car还
要窄?这跟“舒适”完全就是对着干。
我估计又有人会跳出来举什么赛车超跑之类的驾驶舱狭窄但坐起来舒服的例子了。
f******t
发帖数: 7283
24
除了怀档、超大的后尾箱、比compact car还小的乘客舱、最原始/简陋适合频繁开关的
后背箱盖子支撑、专门设计的可以塞很多报纸/杂志/地图的前排座椅等这些特征表明了
E class的基于出租车设计的初衷。还有另外一个很明显的特点体现出这一点。
大家有没有发现E class的仪表盘上有一个很罕见的设计?——上面有一个硕大的有分
针时针的传统时钟,跟速度表放在一起。这个时钟大到跟发动机转速表一样大,两者一
左一右占据在速度表两旁。我留意了一下MB其它车子,比如S class之类的,没发现说
有把这么个硕大的时钟放到仪表盘这样的做法。事实上现在也很少见有车子把时钟给放
到仪表盘这么重要的位置。
那到底时钟有多么重要,使得E class的设计者非要把它放在车速表旁边这个位置,连
油量表、水温表都没它重要?
做出租车司机这行的都知道,做这行生意最重要的就是时间。客人叫了几点的出租车,
你就必须在那个点之前到;路上扬手即停接到客人,客人说要赶在几点前到哪里,你在
开车时看着时钟来real time确定最佳路线,客人高兴了给的小费也多。我坐过很多次
出租车,发现这一行的司机最经常、最频繁的动作:... 阅读全帖
f******t
发帖数: 7283
25
来自主题: Automobile版 - 2014 S class让我心寒啊
你要用销量来比较的前提是,参与比较的双方都有类似可以对应的产品线。比如说S
class,它在北美提供的产品线就有6种不同的发动机/动力选择(至于全球市场来讲我
粗略数了一下,大概有10来种不同的动力系统);而LS则只提供2种不同选择,你怎好
用绝对数字来比较?从2012销量来讲,LS用只有S class 33%的可选择产品范围,却达
到了S class 70%多的销量,你不觉得S class有点说不过去么?
这就好比两个团队同时干活,一个有3个人,另一个只有1人。3人团队出的活是单人团
队的3倍,才能说得过去,这个道理你总该明白吧?
f******t
发帖数: 7283
26
C class和E class都有一个很大的缺点:每当车子刹车的时候,点头现象极其严重,明
显就是悬挂、车体框架布局等方面没设计好。我看有论坛上说当时是因为budget紧,所
以MB没有进行充分的设计测试就定稿,所以最后样车做出来之后发现有这个毛病,改都
没法改。
E class还有一个额外的毛病,就是悬挂系统的表现跟路况反着来,路面平坦的时候它
很软,但一到坑洼路面它反而就变得很硬。也就是说,该硬的时候硬不起来;轮到该软
的时候它反倒就硬起来。
C&D测评里也说过E350悬挂硬到把路面接缝产生的震动都传到车子里面来,电嗝自己也
在MB论坛上承认了这一点。
f******t
发帖数: 7283
27
美国出租车市场早就被美国三大还有丰田抢占了,奔驰这一两年才开始进入,所以在美
国城市里奔驰出租车还是少数。
在欧洲,出租车市场就等价于奔驰,具体来讲应该说是E class。E class在欧洲是最标
准最常见的出租车,甚至我看新闻报道说某些城市的出租车100%都是E class。在新加
坡,E class也是两大常见出租车型号之一(另外一个型号是雅阁),并且两者的每公
里价格都是一样的。
至于租车公司car rental business,奔驰现在简直是泛滥成灾了,我去过的几个大机
场粗略数了一下,供出租的奔驰车比韩国现代/起亚都要多。连最高档的SLS AMG都可以
随便出租。
f******t
发帖数: 7283
28
来自主题: Automobile版 - 奔驰官网可以build 2015 GLA Class了
用英国市场作为例子,在欧洲市场卖的丰田Auris,其实就是Corolla的一个马甲。你自
己查一查就知道了,这车在欧洲市场的定位跟奔驰A/B/CLA class一样,类似配置的情
况下(比如说发动机马力类似)价格是相仿的。所以说,Corolla跟奔驰A/B/CLA class
同样等级。
Lexus NX既然是精装版Corolla,那就相当于比奔驰还要高一档次了。你这样抬举Lexus
NX,真是忠实的Lexus粉丝。
另外我也顺便帮你查了,在英国假如把丰田Avensis(这车在英国充当的角色就类似
Camry在美国)配到跟奔驰C class类似,比如说皮椅、自动空调这些,价格几乎是一样
的。所以说在欧洲,奔驰C class这类车子只是跟丰田Camry同级别。既然你说Lexus ES
/RX这些是Camry的精装版,那就说明了ES/RX是比奔驰还要高级的车子。看出来你呀,
实在是太热爱Lexus了。
不过这也符合现实:奔驰在欧洲是满街都是的出租车,丰田车比出租车高档那也是很正
常的。
s********n
发帖数: 344
29
来自主题: Classified版 - 找想参加TOEFL Prep Class 的同学
代妹夫发的。 他报名了Boston Life 的托福prep classhttp://www.boston-life.org/BostonL/testprep.php, 想找2个同学一起上课,因为一个人一个老师要39一个小时(private class),如果能找个三个人一起上课的话就是25一个小时(最少要三个同学才能开group class),如果能有更多同学的话就更便宜一点, 可以和学校商量。
另外学校提供一个小时的Free Trial Class. 我报考了9月和10月的托福课,报考的9月
和10月的iBT 考试,希望在短期内快速提高。
如果有兴趣的话,请联系857-222-2199 Email: z***********[email protected]
A****h
发帖数: 258
30
寄的rebate,五张纸折了三四次已经很厚,装白的letter信封
在家贴好address label,去邮局寄
结果邮局的人说,只能寄priority,还让我装到红色的priority 信封
我一想要5刀,问能不能用first class, 告诉我不行。然后我说买个他们的厚的信封
然后用first class寄行否,告诉我可以,但是加上信封要四刀多了
first class不到2 OZ的话也就两块钱,我在家试过网上买,1.9都一点,但是rebate的
收件地址太长打印不对
我得用黄色的泡沫信封装才能用first class吗?
谢谢
s****p
发帖数: 81
31
[出售]Microcenter (made by Kingston) 4GB Class 2 SDHC Card
二手交易风险自负!请自行验证是否合法和一手卡!:
我想卖的物品:
Microcenter (made by Kingston) 4GB Class 2 SDHC Card for $5
It's tested and formatted, guarantee functional.
In jewel case.
单张面值:
Microcenter (made by Kingston) 4GB Class 2 SDHC Card for $5
可接受价格(必须明码标价!):
Microcenter (made by Kingston) 4GB Class 2 SDHC Card for $5
物品新旧要求:
It's tested and formatted, guarantee functional.
In jewel case.
邮寄方式要求:
Your mailing label.
买卖双方谁承担邮寄损失(Required if not code only):
付款方式... 阅读全帖
x***y
发帖数: 633
32
来自主题: JobHunting版 - C++ protected base class
I think this is an interesting problem for the conversion between
inheritence hiearachy.
class Base{};
class publicDerived: public Base{};
class protectedDerived: protected Base{};
class privateDerived: private Base{};
Base * pBase;
publicDerived * pPublic;
protectedDerived * pProtected;
privateDerived * pPrivate;
pBase = pPublic; // fine
pBase = pProtected; //error C2243: 'type cast' : conversion exists, but is
inaccessible
pBase = pPrivate; // error C2243: 'type cast' : conversion exists, but
w**********y
发帖数: 1691
33
来自主题: JobHunting版 - [C++问题]请教关于几种size of class
////////////////////////////
class A{ }; A a;
那么 sizeof(a) is 1;
class X{
void doNothing(){}
char a;
};
sizeof(x) 咋还是1,不是 1+1 =2 呢?
////////////////////////////
class Y{
virtual void doNothing(){}
};
sizeof(y) is 4..这个应该是指向virtual table的地址大小吧?
class Y{
virtual void doNothing(){}
virtual void doNothing2(){}
char a;
};
为啥是8不是4+1=5啊? 而且再添加一个member: char b..还是8..
如果换成char* b就成了12...
如果换成char a[2],结果是8
如果换成char a[10],结果是16
非常不理解..
r*******y
发帖数: 1081
34
来自主题: JobHunting版 - c++ class definition
【 以下文字转载自 Programming 讨论区 】
发信人: romancity (山顶一枝草), 信区: Programming
标 题: c++ class definition
发信站: BBS 未名空间站 (Mon Mar 7 23:24:44 2011, 美东)
is this definition local to a file ? for example
// file 1.cpp
#include
using namespace std;
class mytest{
int i;
}
int main(){
return 0;
}
// file 2.cpp
#include
using namespace std;
class mytest{
int i;
}
Then I compile g++ -o 1 1.cpp 2.cpp
it is ok. So I just think that class definition should be
local t... 阅读全帖
c**********e
发帖数: 2007
35
来自主题: JobHunting版 - C++ Q88: nested non-template class
Multiple choice: Which of the following statements are true?
A. Non-template classes can be nested.
B. It is possible to nest one class template inside another.
C. Class templates cannot be nested.
D. Class templates can be nested.
c**********e
发帖数: 2007
36
来自主题: JobHunting版 - C++ Q88: nested non-template class
More explanation from the study material:
"One thing to keep in mind when writing class templates is that although non
-template classes can be nested, class templates cannot."
"Nesting one class template inside another generates a syntax error."
But I am not sure.
J***e
发帖数: 50
37
来自主题: JobHunting版 - 请问一道special singleton class的题
Write a special singleton class, the class has one integer field,
make sure only one instance of this class will be instantiated for
the same value of the integer field.
以下是我写的, 但是有个问题,这样instance不是static, getInstance()因为用到
instance也不能是static,可以吗?这样解对吗?另外,当singleton object destruct的时候,应该把 value从hashmap里删除。怎么实现这个呢?用finalize()?
import java.util.HashMap;
public class SingletonInteger {
private Integer value;
private SingletonInteger instance;
private static HashMap阅读全帖
c******t
发帖数: 391
38
来自主题: JobHunting版 - 被问到primitive type和class type的区别
前些天面试,被interviewer问到Java里primitive类型(如int, char等)和class类型(
如Integer, Character)的区别和用法,我能想到的只有primitive type是其class类型
的wrapper,另外container必须使用class type定义其元素类型。但依然不是很清楚,
为什么container不能用primitive type,另外Java用两种形式(primitive&class)定义
同一类型的根本目的是啥?
请教一下大家这个问题,提前谢过了!
y****i
发帖数: 1504
39
这种治疗仪说治疗抑郁症但是FDA的class 3,不知道是啥具体含义。只知道他是highest
risk compared with class 1&2.但是他到底有没有治疗作用呢?
原文如下,
According to the FDA, cranial electrotherapy stimulator (Regulation No. 882
.5800) is a grandfathered class III neurological device “…that applies
current to a patient’s head to treat insomnia, depression, or anxiety.”
Both the Alpha-Stim® 100 and the Alpha-Stim® SCS have been
classified as cranial electrotherapy stimulators.
Grandfathered class III devices are not considered investiga
t******n
发帖数: 6242
40
没法投诉,US大妈是对的。除非你是Star Alliance Gold Member,才能进非国际航班
的起飞机场的贵宾休息室。你应该带上AMEX白金卡的。
http://www.staralliance.com/en/benefits/status-benefits/lounge-
International Business Class Customers: Customers have access to any Star
Alliance member carriers' owned Business Class lounges.
Customer must be departing from the local airport in International
Business Class
============================================================================
Star Alliance Gold Customers Travelling in Any Class: Customers ... 阅读全帖
s******g
发帖数: 632
41
来自主题: NextGeneration版 - breastfeeding class可以带lg吗?
刚刚把注册的childbirth class和infant care classes的钱给交了,有一个免费的
breastfeeding class。
其他几个都是明确写了可以带partner一起的,不知道这个breastfeeding的class能不
能带着lg一起去参加啊?因为除了childbirth,其他课都是晚上7点到9点的,偶不愿意
一个人去。。。
有参加过的mm知道吗?谢了!
w******0
发帖数: 4472
42
来自主题: NextGeneration版 - breastfeeding class可以带lg吗?
我都是带着LG去,然后LG在外面等着。老公带着书或者电脑,自己忙自己的。:)
但是护送,还是需要他的。

刚刚把注册的childbirth class和infant care classes的钱给交了,有一个免费的
breastfeeding class。
其他几个都是明确写了可以带partner一起的,不知道这个breastfeeding的class能不
能带着lg一起去参加啊?因为除了childbirth,其他课都是晚上7点到9点的,偶不愿意
一个人去。。。
有参加过的mm知道吗?谢了!
d*********9
发帖数: 1598
43
来自主题: NextGeneration版 - Child Birth Class
The hospital where I gave birth. Most hospitals has these classes.
And there are flexible time to take it. There are one day class from
10am-5pm. And others like three days classes. We took the which
take 5 weeks, one class per week from 7pm-9pm.
A******x
发帖数: 811
44
It was very helpful in my opinion.
1. Unless you have a scheduled C-section, everyone will be experiencing some
extention of contraction. The class offers some pain management which is
helpful.
2. The class also offers some knowledge and what to expect right after birth
.
3. One thing I personnally really recommend couples to take this class
together is that it gives the expecting dad a chance to know how labor and
birth really is, so they can be useful and considerate when the time comes.
4. So... 阅读全帖
c**n
发帖数: 22
45
我儿子上过special program的preschool.里面有心理医生,做过评估,结论就是注意
力不集中,不能follow direction,有时out of control,控制不住情绪。没有什么治疗
。评估什么的都是免费的。就是她非让我们去special class。我们不是因为评估,
special class花钱而不愿去。
因为我们觉得我儿子一直在进步,可能以前开化的晚点,但总是一点一点变好。老师也
都说他很聪明,上课讲的东西都知道,虽然看上去他没有听课,在一边玩。
但是就是在人多的时候,经常很兴奋,有点控制不住自己。在家里都挺好。而且他很多
好朋友都是在正常的preschool时交的。现在也经常playdate,周末的时候一起出去玩。
相反在special program的preschool就没有什么朋友。那里的孩子的情况比我儿子要严
重的多。很多家长都是老莫,有很多孩子,可能也不在乎。
我们在special class里还看到以前我儿子在中文preschool时的一个小孩,他在这个
special class里已经两年了,可还是和以前一样,从不说话。这也是一个原因。
c******y
发帖数: 10397
46
☆─────────────────────────────────────☆
mmtpps (胖胖) 于 (Sat Feb 18 18:22:44 2012, 美东) 提到:
Flat Rate Large Box好贵啊,5磅奔70刀了。有没有人用过usps的First Class往国内
寄过东西?可以加Tracking Number和保价嘛?
☆─────────────────────────────────────☆
aaa123 (aa) 于 (Sat Feb 18 18:44:23 2012, 美东) 提到:
就是自己的盒子寄,是吧?我一直是用的这个,4磅以下,30以下,千万不要超过4磅,
一多了几盎司,价格几乎就翻倍了。
不过我一直很想试下FLAT RATE的盒子,说4磅以下16.99,但是问了3次邮局的,都说,
16.99的那个只能装CD,大的那种是31刀?记不太清楚了。
☆─────────────────────────────────────☆
wwn (神勇的小蝎) 于 (Sat Feb 18 18:48:50 2012, 美东) ... 阅读全帖
h********y
发帖数: 43
47
RT,说的first class,其实那就是平邮!!!网上根本就查不到,而且丢件率极高!
!!
我一個月前去usps寄东西,告诉他们要有tracking number的,那个staff根本就不知道
,直接扔给我一张单子说让填,然后交钱。我特地的问她这个是有tracking number的
吧,黑大妈很肯定地说有的,单子上的号码就是。后来才知道那个只是报关单,给海关
用的,根本什么也查不到。心里瞬间一万匹草泥马奔过,只好祈求一切顺利吧,结果现
在一个月了,袅无音信。usps说平邮查不到的,他们什么也不管,我擦。几百块钱的东
西就这么没了,当初的那个usps 的staff,你特么是有病啊???口口声声我说了我要
tracking number,你给我整个这么东西出来是搞毛啊?不懂就不要装懂吗,黑大妈的
话绝对要double check!!! usps真是恶心!!!恶心!!!恶心!!!
重要的东西说三遍:千万别寄first class! 千万别寄first class! 千万别寄first
class!
n***s
发帖数: 10056
48
很多人对Class of Admission不知怎么填:
正确是:your current status.
http://www.murthy.com/news/UDclaadm.html
"Class of Admission Defined by USCIS
Posted Mar 19, 2004
We have recently had a number of clients, as well as MurthyDotCom and
MurthyBulletin readers, ask us what the USCIS means by the term "Class of
Admission" on the new Form I-131, Application for Travel Document. The USCIS
has confirmed that they are seeking the applicant's current immigration
status. They are not looking for the status at first or... 阅读全帖
n***s
发帖数: 10056
49
很多人对Class of Admission不知怎么填:
正确是:your current status.
http://www.murthy.com/news/UDclaadm.html
"Class of Admission Defined by USCIS
Posted Mar 19, 2004
We have recently had a number of clients, as well as MurthyDotCom and
MurthyBulletin readers, ask us what the USCIS means by the term "Class of
Admission" on the new Form I-131, Application for Travel Document. The USCIS
has confirmed that they are seeking the applicant's current immigration
status. They are not looking for the status at first or... 阅读全帖
J******S
发帖数: 73
50
Hi there,
I am planning to take the non-credit tennis (beginning class) class. It is
from 6-7pm (Tue,Thu). Here is the link
http://www.bu.edu/fitrec/programs/noncredit/court.shtml
All my friends are not interested in tennis classes (they like rock climbing
), I am afraid of height, so that is bummer . Anyhow, Let me know, if you
are interested in taking the tennis class. We can keep each for company and
rock the tennis together : )).
PS, I am Chinese MM as well...... : )
Jasmine
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)