mirror of
https://github.com/szymon-jozef/ZUT-notatki.git
synced 2026-10-28 11:10:38 +01:00
fajne rzeczy
This commit is contained in:
17
uczelnia/2_semestr/programowanie/laby/lab3/zad7.cpp
Normal file
17
uczelnia/2_semestr/programowanie/laby/lab3/zad7.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user