diff options
sem 11
1 files changed, 14 insertions, 0 deletions
| -rw-r--r-- | Sem. 10/Examples/Pair/Source2.cpp | 14 |
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'); + +} |
