//返回0,相同!没有分大小写,哈哈
}
在ansi中寻找字符
代码:
void __fastcall tform1::button1click(tobject *sender)
{
ansistring test = "abcdef";
ansistring sample = "e";
int result = test.pos( sample );
//返回5,如果你写sample="haha",就返回0,找不到,哈哈
}
在ansi中找字符串,和上一个类似