SHARE
TWEET

Untitled

a guest Sep 23rd, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class ejemplo {
  6. public:
  7.  
  8.     ejemplo() {
  9.         cout << "\ncreada\n";
  10.     }
  11.  
  12.     ~ejemplo() {
  13.         cout << "destruida";
  14.     }
  15. };
  16.  
  17. void f() {
  18.     int i;
  19. }
  20.  
  21. int main()
  22. {
  23.     ejemplo* e = nullptr;
  24.     {
  25.         e = new ejemplo();
  26.         cout << "hola";
  27.     }
  28.  
  29.     delete e;
  30.  
  31.     return 0;
  32. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top