std::atexit函數

std::atexit函數用來註冊當程序終止時,調用的函數嗎,一般用來釋放資源。例如:函數     #include "stdafx.h" #include <Windows.h>資源 int* ptrq = NULL; void Release() {  printf("release");  free(ptrq);  ptrq = NULL; }it   int _tmain(int argc
相關文章
相關標籤/搜索