05_OOb Vorbereitung auf Testat

This commit is contained in:
Johannes Theiner 2018-11-12 21:23:18 +01:00
parent 8d01cff127
commit e46a332efe
3 changed files with 15 additions and 9 deletions

View File

@ -1,7 +1,3 @@
add_executable(05_OOb_MP add_executable(05_OOb_MP MP/main_mp4_OO_b.cpp)
MP/main_mp4_OO_b.cpp
)
add_executable(05_OOb_Testat add_executable(05_OOb_Testat Testat/main_mp4_OO_b.cpp)
Testat/main_mp4_OO_b.cpp
)

View File

@ -185,10 +185,18 @@ void pattern2() {
B b; B b;
C c; C c;
A a; A a;
} }
void pattern3() {
A a1;
{
A a2;
{
B b;
}
C c;
}
}
int main(int argc, const char * argv[]) { int main(int argc, const char * argv[]) {
@ -212,6 +220,8 @@ int main(int argc, const char * argv[]) {
pattern1(); pattern1();
std::cout << std::endl; std::cout << std::endl;
pattern2(); pattern2();
std::cout << std::endl;
pattern3();
return 0; return 0;
} }