博客
关于我
按照分号分割字符串
阅读量:146 次
发布时间:2019-02-28

本文共 408 字,大约阅读时间需要 1 分钟。

CString temp;	vector
v1 str.Replace(_T(";"), _T(";"));//防止中英文分号混淆,统一把英文分号替换成中文分号 int bj = 0; int ej = 0; while (ej = str.Find(_T(";"), bj)) { if (ej < 1) { if (bj <= str.GetLength())//排除末尾没加分号的情况 { temp =str.Mid(bj, str.GetLength()); v1.push_back(temp); } break; } temp = str.Mid(bj, ej - bj); v1.push_back(temp); bj = ej + 1; ej = 0; }

转载地址:http://liyc.baihongyu.com/

你可能感兴趣的文章
MTCNN 人脸检测
查看>>
MyEcplise中SpringBoot怎样定制启动banner?
查看>>
MyPython
查看>>
MTD技术介绍
查看>>
MySQL
查看>>
mysql
查看>>
MTK Android 如何获取系统权限
查看>>
MySQL - 4种基本索引、聚簇索引和非聚索引、索引失效情况、SQL 优化
查看>>
MySQL - ERROR 1406
查看>>
mysql - 视图
查看>>
MySQL - 解读MySQL事务与锁机制
查看>>
mysql 1264_关于mysql 出现 1264 Out of range value for column 错误的解决办法
查看>>
mysql 1593_Linux高可用(HA)之MySQL主从复制中出现1593错误码的低级错误
查看>>
mysql ansi nulls_SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON 什么意思
查看>>
MySQL Binlog 日志监听与 Spring 集成实战
查看>>
Mysql Can't connect to MySQL server
查看>>
mysql case when 乱码_Mysql CASE WHEN 用法
查看>>
Multicast1
查看>>
MySQL Cluster 7.0.36 发布
查看>>
Multimodal Unsupervised Image-to-Image Translation多通道无监督图像翻译
查看>>