当前位置:网站首页>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
边栏推荐
- How to solve the problem that the alarm information cannot be transmitted after EasyGBS is connected to the latest version of Hikvision camera?
- unity2D横版游戏教程9-对话框dialog
- 传奇服务器需要什么配置?传奇服务器租用价格表
- 第二讲 软件生命周期
- com.jacob.com.ComFailException: Invoke of: ActiveDocument
- laravel whereDoesntHave
- EasyGBS接入最新版海康摄像头后无法传递告警信息该如何解决?
- PyTorch Geometric (PyG) 安装教程
- OD-Model [6]: YOLOv2
- 多个平台显示IP属地,必须大力推行互联网实名制
猜你喜欢
随机推荐
ES6高级-async的用法
stm32mp157系统移植 | 移植ST官方5.10内核到小熊派开发板
Oracle增加表空间解决ORACLE ORA-01653: unable to extend table报错
AtCoder Beginner Contest 262 D - I Hate Non-integer Number
C language knowledge (1) - overview of C language, data types
In which industries is the PMP certificate useful?
Pinduoduo open platform order information query interface [pdd.order.basic.list.get order basic information list query interface (according to transaction time)] code docking tutorial
MySQL查询为啥慢了?
Why is MySQL query slow?
数字重塑客观世界,全空间GIS发展正当其时
基于 Milvus 和 ResNet50 的图像搜索(部署及应用)
数电快速入门(二)(复合逻辑运算和逻辑代数的基本定律的介绍)
com.jacob.com.ComFailException: Invoke of: ActiveDocument
Altium Designer 19.1.18 - draw polygons copper hollow out, for the cursor just capture solutions
七夕特制:《牛郎会织女》
Chapter7 : Network-Driven Drug Discovery
【uiautomation】微信好友列表获取(存储到txt中)
27. Dimensionality reduction
Altium Designer 19.1.18 - 画多边形铜皮挖空时,针对光标胡乱捕获的解决方法
如何一键重装Win11系统 一键重装系统方法









