pre-Modern C++对我印象最深刻的:
#include <vector> #include <iostream> #include <iterator> using namespace std; int main() { vector<int> vec(istream_iterator<int>(cin), istream_iterator<int>()); auto a = vec.size(); // boom }
(好在gcc至少有warning了)
Modern C++对我印象最深刻的大概是
import std;
大概会改变以后我们使用库的习惯...
(第二名大概是ranges)
本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度,google,bing,sogou 等
© 2025 tinynews.org All Rights Reserved. 百科问答小站 版权所有