mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-14 18:55:00 +02:00
[C++/en] Tuple , Updated
This commit is contained in:
@@ -978,7 +978,6 @@ cout << get<0>(first) << " " << get<1>(first) << "\n"; //prints : 10 A
|
|||||||
// printing elements of 'second' tuple
|
// printing elements of 'second' tuple
|
||||||
cout << get<0>(second) << " " << get<1>(second) << "\n"; // prints: 1000000000 15
|
cout << get<0>(second) << " " << get<1>(second) << "\n"; // prints: 1000000000 15
|
||||||
|
|
||||||
|
|
||||||
// Unpacking tuple into variables
|
// Unpacking tuple into variables
|
||||||
|
|
||||||
int first_int;
|
int first_int;
|
||||||
|
Reference in New Issue
Block a user