请高手指教:
我想在一个字符串中查找一个子串,是否有现成的函数
最好字符串是用CString定义的
我想在一个字符串中查找一个子串,是否有现成的函数
最好字符串是用CString定义的
解决方案 »
- 在VC6.0 中如何导入代码目录树??
- 怎么让小喇叭不Beep?
- 100分求救:为什么我只写了#include "valarray"就是一堆错误呢?
- 如何让客户区的背景色和菜单的颜色保持一致?请用SDK函数。谢谢!
- 请C++语言高手回答:一个有关C++语言派生的简单问题!
- 怎么监视击键和鼠标 :)? 他们说 hook
- 关于uedit32
- 俺使用WSAAsyncSelect(....FD_WRITE|FD_READ|FD_CLOSE)函数做echo服务器(发送字符,自动发回!)的疑问!
- 请教:SW_SHOW和m_nCmdShow有什么差别?
- 关于MFC中的CArray模板中添加元素的值传递的问题
- 请教method和property的参数类型问题,谢谢
- 关于消息SendMessage用法,快帮忙!急用
int Find( TCHAR ch ) const;int Find( LPCTSTR lpszSub ) const;int Find( TCHAR ch, int nStart ) const;int Find( LPCTSTR pstr, int nStart ) const;Return ValueThe zero-based index of the first character in this CString object that matches the requested substring or characters; -1 if the substring or character is not found.ParameterschA single character to search for.lpszSubA substring to search for.nStartThe index of the character in the string to begin the search with, or 0 to start from the beginning. The character at nStart is excluded from the search if nStart is not equal to 0.pstrA pointer to a string to search for.
MSDN里有详细的解释