mirror of
https://github.com/szymon-jozef/ZUT-notatki.git
synced 2026-09-07 20:20:39 +02:00
18 lines
322 B
C++
18 lines
322 B
C++
#include <iostream>
|
|
|
|
class Test {
|
|
public:
|
|
Test() { std::cout << "Konstruktor" << std::endl; }
|
|
~Test() { std::cout << "Destruktor" << std::endl; }
|
|
};
|
|
|
|
int main() {
|
|
std::cout << "Start" << std::endl;
|
|
Test a;
|
|
{
|
|
Test b;
|
|
std::cout << "Wewnatrz bloku" << std::endl;
|
|
}
|
|
std::cout << "Koniec" << std::endl;
|
|
}
|