consolidate all repos to one for archive
This commit is contained in:
15
semester_2/programiranje_2/primeri/Example11/main.cpp
Normal file
15
semester_2/programiranje_2/primeri/Example11/main.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <iostream>
|
||||
#include "House.h"
|
||||
|
||||
int main() {
|
||||
std::cout << "Composition example" << std::endl;
|
||||
{
|
||||
std::cout << "----------- nested block begin -----------" << std::endl;
|
||||
House h1("My home");
|
||||
h1.print();
|
||||
std::cout << "----------- nested block end -----------" << std::endl;
|
||||
}
|
||||
std::cout<<"House and rooms don't exist anymore!" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user