1 Star 0 Fork 0

无虑/CPP

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ex14_30_StrBlobTest.cpp 394 Bytes
一键复制 编辑 原始数据 按行查看 历史
无虑 提交于 2021-01-19 15:53 +08:00 . add cpp primer
#include "ex14_30_StrBlob.h"
#include <iostream>
int main()
{
StrBlob sb1{ "a", "b", "c" };
StrBlob sb2 = sb1;
sb2[2] = "b";
if (sb1 > sb2) {
for (ConstStrBlobPtr iter = sb1.cbegin(); iter != sb1.cend(); ++iter)
std::cout << *iter << " ";
std::cout << std::endl;
}
ConstStrBlobPtr iter(sb2);
std::cout << iter->size() << std::endl;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/kitlab/cpp.git
git@gitee.com:kitlab/cpp.git
kitlab
cpp
CPP
master

搜索帮助