您当前的位置: 首页 >  c++
  • 0浏览

    0关注

    1477博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

C++ std::set 取第一个元素

软件工程小施同学 发布时间:2021-10-11 16:06:50 ,浏览量:0

#include 
#include 

using namespace std;

int main()
{
	
    // cbegin/cend(c++11): Returns a const_iterator pointing to the first element in the container/
	// Returns a const_iterator pointing to the past-the-end element in the container
	std::set myset = { 50, 20, 60, 10, 25 };
 
	std::cout             
关注
打赏
1665320866
查看更多评论
0.0425s