[ create a new paste ] login | about

Link: http://codepad.org/iH6V3M03    [ raw code | output | fork ]

C++, pasted on Sep 11:
1
2
3
4
5
6
7
8
9
10
11
12
13
struct T {
   T() { cout << "*T"; }
  ~T() { cout << "~T"; }
};

int main() {
   int x = 0;
   
  lol:
   T t;
   if (x++ < 5)
     goto lol;
}


Output:
1
*T~T*T~T*T~T*T~T*T~T*T~T


Create a new paste based on this one


Comments: