diff --git a/tuple.cc b/tuple.cc new file mode 100644 index 0000000..1254a5d --- /dev/null +++ b/tuple.cc @@ -0,0 +1,18 @@ +#include +#include + +using namespace std; + +// make a function that returns multiple values + +int main() { + tuple c = make_tuple(5, 4); + cout << get<0>(c) << endl; + + int a = 0; + int b = 1; + cout << a << endl; + cout << b << endl; + // swap a, b + // get a,b from func ... +}