1 Star 4 Fork 2

jiangvshine/modern-cpp-tutorial

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
2.05.structured.binding.cpp 443 Bytes
一键复制 编辑 原始数据 按行查看 历史
Changkun Ou 提交于 6年前 . see #2: code updates
//
// 2.5.structured.binding.cpp
// chapter 2 language usability
// modern cpp tutorial
//
// created by changkun at changkun.de
// https://github.com/changkun/modern-cpp-tutorial
//
#include <iostream>
#include <tuple>
#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;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiangvshine/modern-cpp-tutorial.git
git@gitee.com:jiangvshine/modern-cpp-tutorial.git
jiangvshine
modern-cpp-tutorial
modern-cpp-tutorial
master

搜索帮助