codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
class Hello { public: //code written in class definition to save space - this is OK Hello() { cout << "Hello\n"; }; ~Hello() { cout << "Bye\n"; }; }; int main(int argc, char *argv[]) { Hello h1; Hello *h2 = new Hello(); delete h2; }
Private
[
?
]
Run code
Submit