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

@ -31,4 +31,4 @@ int main(int argc, char **argv) {
return 0;
}
}

View File

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

View File

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