in C++, you can use a static object as singleton.
also, the UTF-8 question is hard. unless you have worked on utf-8, it is hard to answer it correctly.
回复:别的不说,singleton 没答好,有点儿说不过去。
所有跟帖:
•
It was a C++ interview,
-吴用先生-
♂
(467 bytes)
()
03/05/2009 postreply
10:44:10
•
why it needs a copy ctor? why make copy constructor "protected"
-戏雨飞鹰-
♀
(356 bytes)
()
03/05/2009 postreply
11:50:35
•
the interviewer said
-吴用先生-
♂
(186 bytes)
()
03/05/2009 postreply
12:31:48