auto
🤖 Lets the C++ compiler deduce the variable type automatically
Automatic type deduction keyword in C++11+.
中文对照 · Chinese
🤖 根据放进盒子的东西自动打印类型标签
如 `auto x = 3.14;`,编译器会自动识别 `x` 是 `double`。
Code example
for (auto x : vec) cout << x;Explore 100 bilingual word cards →