Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 10 / Examples / Pair / Source2.cpp
diff options
context:
space:
mode:
Commit5dda3a1f40e4e8f621b20f374c02b6d1e241e7cf (patch)
Author
 angeld55 <angel_dimitriev@abv.bg>
2022-05-10 20:06:53 +0300
Committer
 angeld55 <angel_dimitriev@abv.bg>
2022-05-10 20:06:53 +0300
Files52f913ec9532fd07c8f679ccf1e68876d1fc9ff2 /Sem. 10/Examples/Pair/Source2.cpp
Object-oriented_programming_FMI-5dda3a1f40e4e8f621b20f374c02b6d1e241e7cf.tar
Object-oriented_programming_FMI-5dda3a1f40e4e8f621b20f374c02b6d1e241e7cf.tar.gz
Object-oriented_programming_FMI-5dda3a1f40e4e8f621b20f374c02b6d1e241e7cf.zip
Parent459d3ac280aafdba703930455f3200b6e7b0f31b (diff)
sem 11
1 files changed, 14 insertions, 0 deletions
-rw-r--r--Sem. 10/Examples/Pair/Source2.cpp14
diff --git a/Sem. 10/Examples/Pair/Source2.cpp b/Sem. 10/Examples/Pair/Source2.cpp
new file mode 100644
index 0000000..39229da
--- /dev/null
+++ b/Sem. 10/Examples/Pair/Source2.cpp
@@ -0,0 +1,14 @@
+#include <iostream>
+#include "Pair.hpp"
+
+
+
+int main()
+{
+ Pair<int, char> p(3, 'd');
+
+ std::cout << p.getSecond();
+
+ p.setSecond('a');
+
+}