public class sealed Singleton
{
Singleton() {
}
public static Singleton Instance{
get{
return Nested.instance;
}
class Nested {
static Nested() {
}
inneral static readonly Singleton instance = new Singleton();
}
}
}
CMyString& CMyString::operator= (const CMyString &Str) {
if (this != &str) {
CMyString strTemp(&Str);
char * pTemp = strTemp.m_pData;
strTemp.m_pData = m_pData;
m_pData = pTemp;
}
return *this;
}
剑指offer001
最新推荐文章于 2017-02-01 23:03:15 发布