C++细节深度探索及软件工程
use function
int atexit( void (*func)(void) );
#include <stdlib.h>
void Bye(){ cout << "Bye" << endl;}int main(int argc, char * argv[]){
atexit(Bye);
for(int i = 0; i < 200; i ++) cout << i << endl; return 0;}
Powered by: C++博客 Copyright © 常兴龙