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
相关文章
相关标签/搜索