Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit710a40b2616e02d0836a40048643af36eb47505c (patch)
Author
 Angel Dimitriev <achi_d@abv.bg>
2021-03-31 12:07:29 -0400
Committer
 GitHub <noreply@github.com>
2021-03-31 12:07:29 -0400
Files519b0625f98dada425653bd9313e458f39d39a96
Object-oriented_programming_FMI-710a40b2616e02d0836a40048643af36eb47505c.tar
Object-oriented_programming_FMI-710a40b2616e02d0836a40048643af36eb47505c.tar.gz
Object-oriented_programming_FMI-710a40b2616e02d0836a40048643af36eb47505c.zip
Parentaea127d1af04cbf4306a13c94c9c0608b7b40de7 (diff)
Update README.md
1 files changed, 14 insertions, 0 deletions
-rw-r--r--Sem. 05/README.md14
diff --git a/Sem. 05/README.md b/Sem. 05/README.md
index ae40386..fe1492a 100644
--- a/Sem. 05/README.md
+++ b/Sem. 05/README.md
@@ -199,4 +199,18 @@ int main()
- Член-функция, която приема интервал и връща дали дадения интервал е подинтервал на дадения.
+ ```c++
+
+int main()
+{
+ Interval t1(3,10); // [3, 10]
+ Interval t2(4,14); // [4, 14]
+ Interval t3; // [0, 0]
+
+ Interval result = t1.intersect(t2); // [4, 10]
+
+ t2.isSuperInterval(result); //true
+}
+ ```
+