char *的字符串操作例程 [英] String manupulation routines for char*
问题描述
大家好,
我是MFC(VC ++)程序员:-)。
因此在处理字符串时我使用了CString类,它为我提供了所有字符串操作例程。如此强大的类具有完成字符串所需的所有事情。 :-)。
但现在我的软件架构仅限制我使用C ++。可以使用MFC库,我甚至无法使用,
std :: string
。 :-(
所以我的所有字符串manupulation应该使用 char *
。
所以,请提供我的提示,代码,链接或任何类型的帮助,帮助我使用以下函数来管理字符串,
所以如何使用,
Hi All,
I am MFC(VC++) programmer :-).
So while dealing with string i used CString class that provide me all string manupulation routines.So strong class having all thing that needed to manupulate string. :-).
But now my software architecture restrict me on only C++. anable to used MFC library,and i cant used even ,
std::string
. :-(
so my all string manupulation should using char*
.
So, please provide me hint,code,link or any type of help that helps me to manupulate string using following functions,
so how can used,
char* StringRight(char* ParamString,int Index)
{
//Need ccde to do this.
}
char* LeftString(char* ParamString,int Index)
{
//Need ccde to do this.
}
char* MidString(char* ParamString,int Index,int count)
{
//Need ccde to do this.
}
int FindString(char* ParamString,char * FindString)
{
//Need ccde to do this.
}
int StringLength(char* ParamString)
{
//Need ccde to do this.
}
bool StringReplace(char* ParamString,char* ReplaceString)
{
//Need ccde to do this.
}
bool StringDelete(char* ParamString,int count)
{
//Need ccde to do this.
}
//and for insert ,concat etc.
___________________________________________________________
谢谢,>
所有帮助都非常适用。
___________________________________________________________
Thanks,
all helps are greatly appreaciates.
推荐答案
您可以使用C库字符串操作例程 [ ^ ]。
You could make use of the C-library string manipulation routines[^].
这篇关于char *的字符串操作例程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!