C++ main函數裏的exit與return的區別

1 #include < iostream > 2 using namespace std; 3 class Temp 4 { 5 public : 6 Temp(){cout << " Constructor! " << endl;} 7 ~ Temp(){cout << " Destructor! " << endl;} 8 }; 9 int main() 10 { 11 Temp t; 12
相關文章
相關標籤/搜索