删除“Ì"的逻辑应该是什么? [英] what should be the logic to remove "Ì"

查看:176
本文介绍了删除“Ì"的逻辑应该是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在得到一个像这样的值:

I am getting a value like this:

"RE000022000500200Ì 0.00 0.1 0.129.8#####-  97-   2#####-   1#####   960.504.00 0: 00.000.00 8: 013:52 0: 021:52############2.00.0   "



在对上述数据进行了一些处理之后,我想要这样的值吗?请您删除"to"的逻辑应该是什么?



I want a value like this after doing some processing on above data can you You please what should be the logic to remove "Ì"

0x0043d690 "RE000022000500200 0.00 0.1 0.129.8#####-  97-   2#####-   1#####   960.504.00 0: 00.000.00 8: 013:52 0: 021:52############2.00.0   "

推荐答案

您可以使用std::find/ [ ^ ]定位''Ì''的出现,然后使用适当的功能将其删除:如果数据类型为std::string,则使用string::erase [
You could use std::find/[^] to locate occurences of ''Ì'', and then remove it with an appropriate function: if the data type is std::string, then use string::erase[^], otherwise use a simple loop to shift the rest of the string one position to the left.


您已经拥有所有必需的信息来处理您发布到
You already have all the required information to process this data which you posted into your question on StackOverflow[^]. You really should be processing this by selecting the different fields in the structure that the data is presented in, rather than trying to process it as a simple string of characters.


这篇关于删除“Ì"的逻辑应该是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆