summaryrefslogtreecommitdiffhomepage
path: root/c++.html.markdown
diff options
context:
space:
mode:
authorJaskamal Kainth <kainthjaskamal@gmail.com>2016-01-28 18:22:11 +0530
committerJaskamal Kainth <kainthjaskamal@gmail.com>2016-01-28 18:22:11 +0530
commitfa2b171008061bc82cf9b35e0470eebeaecb4a26 (patch)
tree1fea75be7dc3846c784481a04f36eb130978cc2c /c++.html.markdown
parent4a1a6857ce30f19f8c04dcca4571bb27f7dc36d0 (diff)
[C++/en] Tuple , Updated
Diffstat (limited to 'c++.html.markdown')
-rw-r--r--c++.html.markdown5
1 files changed, 2 insertions, 3 deletions
diff --git a/c++.html.markdown b/c++.html.markdown
index ea6ef034..1065b9e8 100644
--- a/c++.html.markdown
+++ b/c++.html.markdown
@@ -967,10 +967,10 @@ v.swap(vector<Foo>());
// We start with constructing a tuple.
// Packing values into tuple
-auto first = make_tuple(10,'A') ;
+auto first = make_tuple(10,'A');
const int maxN = 1e9;
const int maxL = 15;
-auto second = make_tuple(maxN,maxL) ;
+auto second = make_tuple(maxN,maxL);
// printing elements of 'first' tuple
cout << get<0>(first) << " " << get<1>(first) << "\n"; //prints : 10 A
@@ -978,7 +978,6 @@ cout << get<0>(first) << " " << get<1>(first) << "\n"; //prints : 10 A
// printing elements of 'second' tuple
cout << get<0>(second) << " " << get<1>(second) << "\n"; // prints: 1000000000 15
-
// Unpacking tuple into variables
int first_int;