字符串操作问题。多谢 CString str="ip 地址:202.114.164.1";怎么取得“:”后面的内容? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 CString str(_T("ip 地址:202.114.164.1")); CString str1= str.Right(str.GetLength() - str.Find( '/')-1); 或str.Delete(0, str.Find( '/')+1); CString str(_T("ip 地址:202.114.164.1")); CString str1= str.Right(str.GetLength() - str.Find( ':')-1); 或str.Delete(0, str.Find( ':')+1); int pos=str.Find(':');CString new=str.Right(str.GetLength()-pos-1); :shakaqrj你是不要说:manless ? wince下如何测试tcp通讯速度? 用api创建的ComboBox怎么添加选项,以及下拉的大小? Modbus通讯问题请教 MFC的日历控件不能正常传值问题 有关ntdll库发生异常的问题? 如何通过MFC打开Word文档并获得文本文件????? debug编译好的程序没问题,RELEASE编译的出错,该是什么原因? 发生在CreateMutex()之后的事情... 非常高手问题,函数指针!!! 【基本功擂台】你认为哪个Clamp函数最快,你有没有更快的? 单文档 保存对话框 关于标准c++,库,操作系统的3个问题
CString str(_T("ip 地址:202.114.164.1"));
CString str1= str.Right(str.GetLength() - str.Find( '/')-1);
或
str.Delete(0, str.Find( '/')+1);
CString str1= str.Right(str.GetLength() - str.Find( ':')-1);
或
str.Delete(0, str.Find( ':')+1);
CString new=str.Right(str.GetLength()-pos-1);
你是不要说:manless ?