gpt4 book ai didi

c++ - 对数字范围使用 boost

转载 作者:行者123 更新时间:2023-12-02 10:18:09 24 4
gpt4 key购买 nike

我有这个简单的代码:

for (auto const& i : boost::counting_range(1, 5)) {
CString strSlipsPerPage;
strSlipsPerPage.Format(IDS_TPL_SLIPS_PER_PAGE, i);
m_cbStatusBarSlipsPerPage.AddString(strSlipsPerPage);
}

有什么方法可以指定范围不超过最终编号(包括最终编号)?除了将其增加到您想要包含的数量之外?

最佳答案

根据official documentationrealisation我可以说不。

关于c++ - 对数字范围使用 boost ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61253995/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com