当前位置:网站首页>Operations on std::vector
Operations on std::vector
2022-08-04 21:50:00 【android framework】
Knowledge points
1 std::vectorstd::string as return parameter
void GetConfigState(std::vectorstd::string&vtTemp)
2 For std::vectorstd::string value operations
std::vectorstd::string::iterator theIterator;
for( theIterator = vtTemp.begin(); theIterator != vtTemp.end(); theIterator++ )
cout 3 Can not directly perform assignment between containers #include } }
#include
using namespace std;
void GetConfigState(std::vectorstd::string&vtTemp)
{
unsigned int nLen = 0;
unsigned int nValue = 0;
std::string strType_Item;
std::string strType_Items;
std::stringstrTemp = "AT+CFUN=1;AT+CFUN=0";
int nPos = strTemp.find(";",0);
int j = 0;
while (nPos != -1)
{
vtTemp.push_back(strTemp.substr(0,nPos));
nPos++;
strTemp = strTemp.substr(nPos,strTemp.length() - nPos);
nPos = strTemp.find(",",0); j++;}if (strTemp.length() != 0){vtTemp.push_back(strTemp.c_str());}
int main()
{std::vector
边栏推荐
- 【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】
- 如何为Web3.0世界启动完美的DAO
- 【PCBA program design】Grip dynamometer program
- 国内的PMP证书含金量到底如何
- [larave]关于laravel使用form submit()不能获取值问题
- 开发deepstram的自定义插件,使用gst-dseaxmple插件进行扩充,实现deepstream图像输出前的预处理,实现图像自定义绘制图(精四)
- 1319_STM32F103串口BootLoader移植
- Win11如何设置软件快捷方式?
- 未知点云结构文件转换需求
- 如何将二叉搜索树转化为一个有序的双向链表(原树上修改)
猜你喜欢

【线性代数02】AX=b的2种解释和矩阵乘法的5种视角

Oracle增加表空间解决ORACLE ORA-01653: unable to extend table报错

AXI interface application of Zynq Fpga image processing - the use of axi_lite interface

打卡第 1 天:正则表达式学习总结

搬走地下空间开发利用“绊脚石” 中地数码取得地下空间透明化技术突破

PowerCLi import license to vCenter 7

rk3399 驱动屏参的几种方式

unity2D横版游戏教程8-音效

Unknown point cloud structure file conversion requirements

国内的PMP证书含金量到底如何
随机推荐
AXI interface application of Zynq Fpga image processing - the use of axi_lite interface
8 年产品经验,我总结了这些持续高效研发实践经验 · 协同篇
Excel商业智能-Power BI电商数据分析实战
中大型商业银行堡垒机升级改造方案!必看!
七夕特制:《牛郎会织女》
VSCode—常用快捷键(持续记录
com.jacob.com.ComFailException: Invoke of: ActiveDocument
milvus配置相关
Autowired自动装配
炽热如初 向新而生|ISC2022 HackingClub白帽峰会圆满举办!
Red team kill-free development practice of simulated confrontation
[Linear Algebra 03] Elimination method display and 4 solutions of AX=b
Qiangwang Cup 2022 - WEB
PowerCLi import license to vCenter 7
Oracle使用expdp和impdp导出导入数据
快速web开发框架——learun framework
LeetCode: 406. 根据身高重建队列
rk3399-9.0一级二级休眠
mysql基础
ini怎么使用? C#教程