CString SpanExcluding( LPCTSTR lpszCharSet ) const;
throw( CMemoryException );Return Value
A substring that contains characters in the string that are not in lpszCharSet, beginning with the first character in the string and ending with the first character found in the string that is also in lpszCharSet (that is, starting with the first character in the string and up to but excluding the first character in the string that is found lpszCharSet). It returns the entire string if no character in lpszCharSet is found in the string.
throw( CMemoryException );Return Value
A substring that contains characters in the string that are not in lpszCharSet, beginning with the first character in the string and ending with the first character found in the string that is also in lpszCharSet (that is, starting with the first character in the string and up to but excluding the first character in the string that is found lpszCharSet). It returns the entire string if no character in lpszCharSet is found in the string.
解决方案 »
- MFC activex控件如何加载dll文件?
- MFC dll中调用模式对话框的问题,急啊,帮帮忙
- 怎么存取Access中的OLE对象(比如说Excel工作表)?
- 如何改变Explorer风格程序的默认察看方式为列表方式?
- 关于多文档的切换
- 怎么把一个数组的数据赋值到一个EDIT BOX 里显示呢?
- 这是什么病毒?
- 请问:如何在98下使程序窗体透明??
- 关于多线程的询问
- 如何响应ListView中Checkbox的点击?有没有这样的通用函数?我可以把分数加到很高的!
- 如何获得某段代码的执行时间(vc)谢谢
- 请问在何处能 Downloads visual C++ Enterprise Edition
{
CString re="";
for (int=0;i<strlen(str);i++)
{
if((str[i]!=13 && str[i]!=10) &&str[i]!=32))
re+=str[i];
}
return re;
}
void TrimLeft( );void CString::TrimLeft( TCHAR chTarget );void CString::TrimLeft( LPCTSTR lpszTargets );ParameterschTargetThe target characters to be trimmed.lpszTargetsA pointer to a string containing the target characters to be trimmed.Call the version of this member function with no parameters to trim leading whitespace characters from the string. When used with no parameters, TrimLeft removes newline, space, and tab characters.
cs.Replace(" ","");//去空格
等等