revision #2: 修改文件名

This commit is contained in:
Changkun Ou
2018-04-09 14:47:43 +02:00
parent dccc61c7a7
commit 02a1105512
12 changed files with 0 additions and 79 deletions

View File

@@ -0,0 +1,20 @@
//
// 2.5.structured.binding.cpp
// chapter 2 language usability
// modern cpp tutorial
//
// created by changkun at changkun.de
//
#include <iostream>
#include <string>
std::tuple<int, double, std::string> f() {
return std::make_tuple(1, 2.3, "456");
}
int main() {
auto [x, y, z] = f();
std::cout << x << ", " << y << ", " << z << std::endl;
return 0;
}