Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<tuple>
- #include<memory>
- using namespace std;
- pair<int, int>test(int a, int b) {
- return make_pair(a, b);
- }
- void main() {
- int a = 5;
- int b = 7;
- int c, d;
- float e = 2.17;
- tie<int, int>(c, d) = test(a, b);
- cout << "a= " << a << " b= " << b << " c= " << c << " d= " << d;
- unique_ptr<float>nesto = make_unique<float>();
- *nesto = e;
- cout << "unique pointer nesto pokazuje na e i vrijednost je " << *nesto << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement