摘要:
1 #include 2 int main() 3 { 4 using namespace std; 5 int x; 6 7 cout3 has the value "; 13 cout3)3 has the value "; 18 cout3)<<endl; 19 return 0; 20 } 阅读全文
摘要:
1 //饿汉式 2 class Single 3 { 4 private static final Single s= new Single(); 5 private Single(){} 6 public static Single getInstance() 7 { 8 return s; 9 } ... 阅读全文