m**k 发帖数: 1503 | 1 http://dailycaller.com/2016/04/06/malaysia-jails-gays-but-paypa
PayPal announced Monday that it would no longer be opening an office in
North Carolina after Republican Gov. Pat McRory signed into law a bill
requiring people to use the biologically correct bathroom, a move PayPal CEO
Dan Schulman said “violates the values and principles that are at the core
of PayPal’s mission and culture.” But PayPal’s values didn’t keep the
company from opening and maintaining a global operations center in Mala... 阅读全帖 |
|
j*****v 发帖数: 7717 | 2 发春,来来来,曲解一下
"A free people ought not only to be armed, but disciplined..."
- George Washington, First Annual Address, to both House of Congress,
January 8, 1790
"No free man shall ever be debarred the use of arms."
- Thomas Jefferson, Virginia Constitution, Draft 1, 1776
"I prefer dangerous freedom over peaceful slavery."
- Thomas Jefferson, letter to James Madison, January 30, 1787
"What country can preserve its liberties if their rulers are not warned from
time to time that their people preser... 阅读全帖 |
|
l*****o 发帖数: 19235 | 3 It's that time of year again, Mr. President.
Time to celebrate the lingering Yuletide spirit and the bright promise of
the year to come. Time to savor the companionship of friends and family.
Time to donate your underpants to a charitable organization so you can later
claim a deduction on your 1993 tax return.
If the recent past is any guide, Bill Clinton and his wife, First Lady
Hillary Rodham Clinton, have been spending the past few months gathering up
unwanted belongings -- from old shoes to ... 阅读全帖 |
|
W*******n 发帖数: 4140 | 4 Has Donald J. Trump Actually Hurt You?
Limin Wang
10/18/2016, finalized on 11/5/16
The political opponents and many of the mainstream media have
painted Donald J. Trump as a dude unfit for the U.S.A. presidency
with a variety of brushes and paint. Please allow me to lead the
talk on some issues. His history of actions, not just words, should
give us more clues.
1) Is Donald J. Trump a white supremacist? an immigrant phobicist?
Black neurologist Ben Carson is neither crazy nor stupid, and
he appe... 阅读全帖 |
|
|
g********2 发帖数: 6571 | 6 Donald Trump’s New York Times Interview: Full Transcript
By THE NEW YORK TIMESNOV. 23, 2016
President-elect Donald J. Trump during a meeting at The New York Times’s
offices in Manhattan on Tuesday.
Following is a transcript of President-elect Donald J. Trump’s interview on
Tuesday with reporters, editors and opinion columnists from The New York
Times. The transcription was prepared by Liam Stack, Jonah Engel Bromwich,
Karen Workman and Tim Herrera of The Times.
ARTHUR SULZBERGER Jr., publisher o... 阅读全帖 |
|
a*****1 发帖数: 3817 | 7 自己去看美国宪法
United States Constitution
From Wikipedia, the free encyclopedia
Jump to: navigation, search
United States Constitution
Constitution of the United States, page 1.jpg
Page one of the original copy of the Constitution
Created
September 17, 1787
Ratified
June 21, 1788
Date effective
March 4, 1789; 227 years ago
Location
National Archives,
Washington, D.C.
Author(s)
Philadelphia Convention
Signatories
39 of the 55 delegates
Purpose
To replace the Articles of Confederation (177... 阅读全帖 |
|
a*****1 发帖数: 3817 | 8 自己去看美国宪法
United States Constitution
From Wikipedia, the free encyclopedia
Jump to: navigation, search
United States Constitution
Constitution of the United States, page 1.jpg
Page one of the original copy of the Constitution
Created
September 17, 1787
Ratified
June 21, 1788
Date effective
March 4, 1789; 227 years ago
Location
National Archives,
Washington, D.C.
Author(s)
Philadelphia Convention
Signatories
39 of the 55 delegates
Purpose
To replace the Articles of Confederation (177... 阅读全帖 |
|
发帖数: 1 | 9 Reasons Why We Need to Preserve Our 2nd Amendment Right to Keep and Bear
Arms
The very atmosphere of firearms anywhere and everywhere restrains evil
interference. They deserve a place of honor with all that is good. When
firearms go, all goes. We need them every hour. — George Washington,
Founding Father in his address to the 2nd session of united States Congress.
Steve Nolan, Contributor
Our thoughts and prayers go out to the victims and survivors of the Aurora,
Colorado shooting as well as to... 阅读全帖 |
|
b*****d 发帖数: 61690 | 10 In a landmark ruling Monday, the Supreme Court sided with a Colorado baker
who refused to make a custom cake for a same-sex wedding.
In a 7-2 decision written by Justice Anthony Kennedy, the court said the
Colorado Civil Rights Commission violated the Free Exercise Clause of the
Constitution when it forced Jack Phillips to make a cake for a same-sex
wedding he morally opposed under the state's public accommodations law.
"The laws and the Constitution can, and in some instances must, protect gay
... 阅读全帖 |
|
k******0 发帖数: 2438 | 11 大快人心
:In a landmark ruling Monday, the Supreme Court sided with a Colorado baker
:who refused to make a custom cake for a same-sex wedding.
:In a 7-2 decision written by Justice Anthony Kennedy, the court said the
:Colorado Civil Rights Commission violated the Free Exercise Clause of the
:Constitution when it forced Jack Phillips to make a cake for a same-sex
:wedding he morally opposed under the state's public accommodations law.
:"The laws and the Constitution can, and in some instances m... 阅读全帖 |
|
发帖数: 1 | 12 你翻译的这个根本不是我刚才给你的那一段,你从维基百科上看到了只言片语就大言不
惭地说"他发的只是在"讨论",连官方公告都不沾边".但法官明明说的是他用推特发官方
公告,宣布正式决定,与外国领导人接触....等等及其他声明以及"偶尔"与政府官方事务
无关的事情.
提名..解职...
更何况在州议会选举的时候他还专门用推特为共和党候选人进行背书.
看看判决书摘录吧,白纸黑字,你可以否认,我就权当你看不懂就好:
Since the President’s inauguration, the @realDonaldTrump account has been
operated with the assistance of defendant Daniel Scavino, “the White House
Social Media Director and Assistant to the President [who] is sued in his
official capacity only.”
“With the assistance of Mr. Scavino in certain ... 阅读全帖 |
|
F****s 发帖数: 3761 | 13 喷子们说话要注意了,如果你不是美国国籍,在社交网络乱喷候选人是要坐牢的。FBI
态度已经很明确了,就看别人是不是举报你了。我们看看谁会成为第一个在美国坐牢的
五毛水军。
A Russian national has become the first person charged by the U.S. for
conspiring to interfere in the 2018 midterm elections, according to the FBI
and Justice Department. Elena Alekseevna Khusyaynova is alleged in the
indictment to have participated in a conspiracy to "sow discord in the U.S.
political system and to undermine faith in our democratic institutions.
The government says that the conspiracy is also p... 阅读全帖 |
|
|
d**g 发帖数: 167 | 15 County of Nassau v Levine
2010 NY Slip Op 20305 [29 Misc 3d 474]
July 12, 2010
Kluewer, J.
District Court Of Nassau County, First District
Published by New York State Law Reporting Bureau pursuant to Judiciary Law
§ 431.
As corrected through Wednesday, November 17, 2010
[*1]
County of Nassau, Plaintiff,
v
Samuel M. Levine, Defendant.
District Court of Nassau County, First District, July 12, 2010
APPEARANCES OF COUNSEL
Samuel M. Levine, Long Beach, defendant pro se. John Ciampoli, County
Attorney... 阅读全帖 |
|
k*********5 发帖数: 1417 | 16 今天加入了amex的租车计划
不过有两个选项
Amount of Theft/Damage Coverage* Premium (per rental)
Up to $100,000 $24.95
Up to $75,000 $19.95
请问这其中到底有什么区别啊
不是说只能租不超过5万的车么?
那是Up to $100,000 $24.95的不超过5万?那19.95的最多能租多少价值的车呢?
这个5万是怎么弄出来的?
还有看了他家的解释
是不是这两个的区别主要在于不同价值的人身保险和财产保险?
PREMIUM CAR RENTAL PROTECTION DETAILS
Premium Car Rental Protection (PCRP) is an insurance product offered by
American Express® Travel Related Services Company, Inc. to help protect
American Express Cardmembers and Passengers when the Cardmemb... 阅读全帖 |
|
p******e 发帖数: 327 | 17 转一张UA Electronic Certificate 面额 $400,明年2月16号到期。比较适合飞远的航
班。$300出.
prefer non cc paypal or BOA。
$400 CERTIFICATE TERMS AND CONDITIONS:
*****************************************
United Airlines Customer Relations
Goodwill Electronic Certificate
$400
Use one number to discount one new electronic certificate eligible roundtrip
or one-way fare booked on united.com. You must begin your travel in the 50
United States, Puerto Rico or U.S. Virgin Islands and fly to a destination
within the 50 United State... 阅读全帖 |
|
V*******t 发帖数: 30 | 18 请参读如下使用方法及条件,有意请站内联系。
*********************************************************
$100 CERTIFICATE TERMS AND CONDITIONS:
***********************************
United Airlines Customer Care
Goodwill Electronic Certificate
$100
Use one number to discount one new electronic certificate eligible
roundtrip or one-way fare booked on united.com. You must begin your
travel in the 50 United States, Puerto Rico or U.S. Virgin Islands and
fly to a destination within the 50 United States, Puerto Rico, U.S.
Virg... 阅读全帖 |
|
b****n 发帖数: 110 | 19 我想卖的物品:
1x United e-certificate 125, Expire July 11, 2012
2x United 10% off ticket face value, expire July 11, 2012
单张面值:
可接受价格(必须明码标价!):
$125 certificate for $95
10% off certificates each for $25 , good for international flights
物品新旧要求:
邮寄方式要求:
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
paypal, or BOA
其他补充说明:
广告的有效期:
物品来源(Required for All Cards!):
United
我的联系方式:
pm
Warranty期限:
能否证明是合法的一手卡?(Required for All Cards!):
Terms:
Use one number to discount one new electronic certificate eligible r... 阅读全帖 |
|
i*****8 发帖数: 2691 | 20 我想卖的物品:
UA Electronic Certificate
单张面值: $250
可接受价格(必须明码标价!):
$200
物品新旧要求:
邮寄方式要求:
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
Non-CC paypal
其他补充说明:
只能美国国内往返。expire: Aug 7,2012。
*********************************************************
$250 CERTIFICATE TERMS AND CONDITIONS:
*****************************************
United Airlines Customer Care
Goodwill Electronic Certificate
$250
Use one number to discount one new electronic certificate eligible
roundtrip or one-way fare booked on united.com... 阅读全帖 |
|
c*******0 发帖数: 87 | 21 我想卖的物品:
UA Electronic Certificate
单张面值: $250
可接受价格(必须明码标价!):
$200
物品新旧要求:
邮寄方式要求:
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
Non-CC paypal
其他补充说明:
只能美国国内往返。expire: SEP 15,2012。
*********************************************************
$250 CERTIFICATE TERMS AND CONDITIONS:
*****************************************
United Airlines Customer Care
Goodwill Electronic Certificate
$250
Use one number to discount one new electronic certificate eligible
roundtrip or one-way fare booked on united.co... 阅读全帖 |
|
h***s 发帖数: 2499 | 22 I have three. $55 each. $155 for all if take three. Expiring next Jan.
BOA only, mitbbs mail only
********************************************************
$75 CERTIFICATE TERMS AND CONDITIONS:
*******************************************
United Airlines Customer Care
Goodwill Electronic Certificate
$75
Use one number to discount one new electronic certificate eligible roundtrip
or one-way fare booked on united.com. You must begin your travel in the 50
United States, Puerto Rico or U.S. Virgin Is... 阅读全帖 |
|
H****y 发帖数: 2992 | 23 Interview with Dr. Xi Yin
--- By Fiona Rawsontile, Sept 2015
This interview was inspired by an earlier interview of Dr. Yin I saw on the
Internet, which made me think that we can’t expect someone who normally
writes for entertainment to understand a physicist. To “provoke” a
scientist, we need another scientist. So I volunteered (to myself) and sent
an invitation to Dr. Yin, who was recently promoted to Professor in Physics
at Harvard Uni... 阅读全帖 |
|
S*******t 发帖数: 3956 | 24 (作为年仅31岁就晋升哈佛正教授的青年才俊,尹希教授最近得到了很多关注。其中一
篇关于他的专访进入了一名同是美国大学华裔教授的女科学家的视线。因为觉得这样的
采访不过瘾,她突发奇想,想亲自采访一下尹希。于是就有了这个我们今天看到的两名
科学家之间的对话。这位女教授使用了化名,这是她出版自己几部科幻小说的笔名。对
,没错,这位女教授同时也是一个女文青,已经写了几本书,还都是英文,Amazon 就
能买到。感兴趣的不妨找来看看。很可能有一天,她也会成为传奇式的人物。那今天这
篇采访就会成为另一段佳话。)
Interview with Dr. Xi Yin
--- By Fiona Rawsontile, Sept 2015
Translated by Slow Rabbit
This interview was inspired by an earlier interview of Dr. Yin I saw on the
Internet, which made me think that we can’t expect some... 阅读全帖 |
|
h**********g 发帖数: 3962 | 25 一下是图灵官网的描述。我觉得他在密码学方面的贡献是很重要的一部分。
Yao spent a year as a Professor in the Computer Science Division of the
University of California, Berkeley, and subsequently returned to Stanford as
a full Professor in 1982. During the early 1980’s, Yao produced a number
of papers which had a lasting impact on the foundations of cryptography,
computer security, computational complexity and randomized computation. This
work was significant not only for results obtained, but also for the
introduction of problems,... 阅读全帖 |
|
g*g 发帖数: 6908 | 26 把term and conditions 贴这里
*********************************************************
$250 CERTIFICATE TERMS AND CONDITIONS:
*****************************************
United Airlines Customer Care
Goodwill Electronic Certificate
$250
Use one number to discount one new electronic certificate eligible
roundtrip or one-way fare booked on united.com. You must begin your
travel in the 50 United States, Puerto Rico or U.S. Virgin Islands and
fly to a destination within the 50 United States, Puerto Rico, ... 阅读全帖 |
|
l*****9 发帖数: 1058 | 27 都是国内的,以为大家都知道怎么用。鉴于有些同学问到具体问题,现在把ua的标准条
款贴出。
expiration date: 1/12/2012 for 1 $200; 3/12/12 for another one $200; 6/6/12
for the $250
*********************************************************
$200 CERTIFICATE TERMS AND CONDITIONS:
*****************************************
United Airlines Customer Relations
Goodwill Electronic Certificate
$200
Use one number to discount one new electronic certificate eligible roundtrip
or one-way fare booked on united.com. You must begin your travel in the 50
Uni... 阅读全帖 |
|
l*****9 发帖数: 1058 | 28 都是国内的,以为大家都知道怎么用。鉴于有些同学问到具体问题,现在把ua的标准条
款贴出。
expiration date: 1/12/2012 for 1 $200; 3/12/12 for another one $200; 6/6/12
for the $250
*********************************************************
$200 CERTIFICATE TERMS AND CONDITIONS:
*****************************************
United Airlines Customer Relations
Goodwill Electronic Certificate
$200
Use one number to discount one new electronic certificate eligible roundtrip
or one-way fare booked on united.com. You must begin your travel in the 50
Uni... 阅读全帖 |
|
p******e 发帖数: 327 | 29 转一张UA Electronic Certificate 面额 $400,明年2月16号到期。比较适合飞远的航
班。$300出.
prefer non cc paypal or BOA。
$400 CERTIFICATE TERMS AND CONDITIONS:
*****************************************
United Airlines Customer Relations
Goodwill Electronic Certificate
$400
Use one number to discount one new electronic certificate eligible roundtrip
or one-way fare booked on united.com. You must begin your travel in the 50
United States, Puerto Rico or U.S. Virgin Islands and fly to a destination
within the 50 United State... 阅读全帖 |
|
V*******t 发帖数: 30 | 30 请参读如下使用方法及条件,有意请站内联系。
*********************************************************
$100 CERTIFICATE TERMS AND CONDITIONS:
***********************************
United Airlines Customer Care
Goodwill Electronic Certificate
$100
Use one number to discount one new electronic certificate eligible
roundtrip or one-way fare booked on united.com. You must begin your
travel in the 50 United States, Puerto Rico or U.S. Virgin Islands and
fly to a destination within the 50 United States, Puerto Rico, U.S.
Virg... 阅读全帖 |
|
V*******t 发帖数: 30 | 31 Expiration Date: Dec. 9, 2012
请参读如下使用方法及条件,有意请站内联系。
*********************************************************
$100 CERTIFICATE TERMS AND CONDITIONS:
***********************************
United Airlines Customer Care
Goodwill Electronic Certificate
$100
Use one number to discount one new electronic certificate eligible
roundtrip or one-way fare booked on united.com. You must begin your
travel in the 50 United States, Puerto Rico or U.S. Virgin Islands and
fly to a destination within the 50 United ... 阅读全帖 |
|
b****n 发帖数: 110 | 32 我想卖的物品:
1x United e-certificate 125, Expire July 11, 2012
2x United 10% off ticket face value, expire July 11, 2012
单张面值:
可接受价格(必须明码标价!):
$125 certificate for $95
10% off certificates each for $25 , good for international flights
物品新旧要求:
邮寄方式要求:
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
paypal, or BOA
其他补充说明:
广告的有效期:
物品来源(Required for All Cards!):
United
我的联系方式:
pm
Warranty期限:
能否证明是合法的一手卡?(Required for All Cards!):
Terms:
Use one number to discount one new electronic certificate eligible r... 阅读全帖 |
|
b****n 发帖数: 110 | 33 up
我想卖的物品:
1x United e-certificate 125, Expire July 11, 2012
2x United 10% off ticket face value, expire July 11, 2012
单张面值:
可接受价格(必须明码标价!):
$125 certificate for $90
10% off certificates each for $25 , very good for international flights
mileage earning
物品新旧要求:
邮寄方式要求:
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
paypal, or BOA
其他补充说明:
广告的有效期:
物品来源(Required for All Cards!):
United
我的联系方式:
pm
Warranty期限:
能否证明是合法的一手卡?(Required for All Cards!):
Terms:
Use one number to discount one new electroni... 阅读全帖 |
|
i*****8 发帖数: 2691 | 34 我想卖的物品:
UA Electronic Certificate
单张面值: $250
可接受价格(必须明码标价!):
$200
物品新旧要求:
邮寄方式要求:
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
Non-CC paypal
其他补充说明:
只能美国国内往返。expire: Aug 7,2012。
*********************************************************
$250 CERTIFICATE TERMS AND CONDITIONS:
*****************************************
United Airlines Customer Care
Goodwill Electronic Certificate
$250
Use one number to discount one new electronic certificate eligible
roundtrip or one-way fare booked on united.com... 阅读全帖 |
|
c*******0 发帖数: 87 | 35 我想卖的物品:
UA Electronic Certificate
单张面值: $250
可接受价格(必须明码标价!):
$200
物品新旧要求:
邮寄方式要求:
买卖双方谁承担邮寄损失(Required if not code only):
付款方式说明:
Non-CC paypal
其他补充说明:
只能美国国内往返。expire: SEP 15,2012。
*********************************************************
$250 CERTIFICATE TERMS AND CONDITIONS:
*****************************************
United Airlines Customer Care
Goodwill Electronic Certificate
$250
Use one number to discount one new electronic certificate eligible
roundtrip or one-way fare booked on united.co... 阅读全帖 |
|
h***s 发帖数: 2499 | 36 I have three. $55 each. $155 for all if take three. Expiring next Jan.
BOA only, mitbbs mail only
********************************************************
$75 CERTIFICATE TERMS AND CONDITIONS:
*******************************************
United Airlines Customer Care
Goodwill Electronic Certificate
$75
Use one number to discount one new electronic certificate eligible roundtrip
or one-way fare booked on united.com. You must begin your travel in the 50
United States, Puerto Rico or U.S. Virgin Is... 阅读全帖 |
|
h***s 发帖数: 2499 | 37 I have three. $55 each. $155 for all if take three. Expiring next Jan.
BOA only, mitbbs mail only
********************************************************
$75 CERTIFICATE TERMS AND CONDITIONS:
*******************************************
United Airlines Customer Care
Goodwill Electronic Certificate
$75
Use one number to discount one new electronic certificate eligible roundtrip
or one-way fare booked on united.com. You must begin your travel in the 50
United States, Puerto Rico or U.S. Virgin Is... 阅读全帖 |
|
m******r 发帖数: 61 | 38 I have one class. in order to make my application only have one instance of
this class,
I define a static count, when contructor is called the counter will ++.
my question is when counter >1, how class will destroy itself, when second
instance is trying to create.
Can I call destructor from constructor
except static variable, do we have other way to keep only one copy in my
application?
Thanks so much. |
|
b***e 发帖数: 1419 | 39 This is an encoding/serialization problem. Just use a symbol to escape (e.g
., represent shift). For instance, '0' is good. So in your example:
nMJ8kP2G
will be:
n0m0jik0p20g
The next question would be what if 0 is in the A string. In this case, just
like in C strings we use '\' for escaping and use '\\' for the real '\'
character, we can use "00" for a real '0'. For instance:
a0b1c
will be:
a00b1c |
|
o***i 发帖数: 4 | 40 What if two threads get to point A at same time?
thread 1 get into synchronized block and create 1 SS instance
after that, thread 2 will get into sync block and create another SS
instance? Did I miss something here?
public static SpecialSingleton getInstance(Integer i){
SpecialSingleton ss = instanceMap.get(i);
== point A
synchronized(instanceMap){
if(ss == null){
ss = new SpecialSingleton(i);
instanceMap.put(i,ss);
}
|
|
|
q*********u 发帖数: 280 | 42 这个是原来楼主的代码,大致对的,仔细看看他应该是在写方法2,没有final, 这个
写不写,的确区分层次了,另外他有专门一个synchronized block在getter里面,所以
我觉得他是在写2
但是有可能interviewer会看到这个getter又没有专门的工厂, 会不会然后联想方法三
了,这样需要final, 然后就跟楼主起了争执,
其实就面一个初级的sde, 唉,只能说是水涨船高了。
这个是goodbug的代码,再贴一下
public class Singleton {
private static final Singleton INSTANCE = new Singleton();
private Singleton() {}
public static getInstance() { return INSTANCE; }
}
我写的最后一道题的code,欢迎批评指正
public final class SpecialSingleton{
private Integer i;
private static Map |
|
g**e 发帖数: 6127 | 43 来自主题: JobHunting版 - gg面试题 写一个,抛砖引玉。应用于java 5以上
public class SpecialSingleton {
private final int i;
private volatile static SpecialSingleton instance = null;
private static ConcurrentHashMap
instanceMap = new ConcurrentHashMap();
private SpecialSingleton(int i)
{
this.i = i;
}
public static SpecialSingleton getInstance(int i)
{
instance = instanceMap.get(i);
|
|
Z*****Z 发帖数: 723 | 44 来自主题: JobHunting版 - gg面试题 比如说你自己写的这个版本,某一时刻HashMap里面装着int为1的singleton,
这个时候getInstance(2)被调用,instance被置为null,
这个时候getInstance(1)被调用,instance被置为Map里的那个singleton,
这个时候如果getInstance(2)继续执行下面的if语句,逻辑就不对了吧? |
|
Q****r 发帖数: 7340 | 45 我觉得你说的例子不对
static是被all the instance of the class所共有的,但是不被subclass的instance
所共
有
count |
|
t*******y 发帖数: 637 | 46 Suppose you're responsible for writing class MyClass as part of a static
library.
a) How do you enforce that a single instance of this class be used at
compile-time? b) How do you enforce that instances only be allocated on the
stack, but not on the heap, at compile-time?
a)应该是用singleton
b)呢? |
|
w*****e 发帖数: 158 | 47 看大牛的面试经历中写道 “面试中问道了设计模式, 但是只谈了singleton,
singleton谈了很多,
如何实现, 有什么问题”
我对于 singleton (classA) 实现的理解:
1. private constructor
2. define static member pointer variable (pointing to an instance of the
classA)
3. define static member function getInstance() returning the pointer or
reference
4. Inside the getInstance():
* when first time class, create an instance and save the address into
static member pointer;
* return the the static member variable
还有什么需要注意的吗? 可能会遇到什么问题?
先多谢了。 |
|
p********7 发帖数: 549 | 48 the constructor is private. For this pattern, you can't use constructor
and destructor. Because they can't control the number of instance. You can
only use friend class cleanup to delete the instance. |
|
M******q 发帖数: 94 | 49 "doesn't make a difference" means "it doesn't matter".
singleton doesn't require dctor to be private. singleton's essential idea is
, there is only one instance of a certain class. My understanding is, other
aspects could vary on different variants of singleton.
BTW, destroy() should be static function, not associated with any instance. |
|
h*****g 发帖数: 944 | 50 Q1)
what are the variable types in the statement below?
int * x, y;
a) both x and y are of type int *
b) x is of type int* and y is of type int
c) x is of type int and y is of type int*
d) both x and y are of type int
我选的是b
Q2)
which of the following is a correct declaration for a pointer to a function
that returns a double and takes no arguments?
a) double (*ptr_function)(void);
b) double (ptr_function)(void);
c) double ptr_function(void);
d) double *ptr_function(void);
Q3)
Which of the followi... 阅读全帖 |
|