首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

CString种//使用Mid是啥作用

2013-07-16 
CString类//使用Mid是啥作用?CString openStropenStr.Format(_T(http://192.168.1.85/-wvhttp-01-/open.

CString类//使用Mid是啥作用?


CString openStr;
openStr.Format(_T("http://192.168.1.85/-wvhttp-01-/open.cgi");

int f = openStr.Find('\n');
CString tmpS = openStr.Mid(0, f);

int g = tmpS.Find('=');
CString connectID = tmpS.Mid(g + 1, tmpS.GetLength() - 1);

[解决办法]
openStr.Mid(0, f);
从位置0开始长度为f的openStr的子串

热点排行