以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  如何判断字符串不相等?  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=71498)

--  作者:gongxiangban
--  发布时间:2014/10/29 13:47:13
--  如何判断字符串不相等?
比如 a[i]:=\'abcsd\'
if a[i]<>\'abcsd\' then
begin 
...
end; 

--  作者:jinzhe
--  发布时间:2014/10/29 13:58:55
--  

strcmp(a,b)

结果=0就是表示相等

strcmp(\'123\',\'123\')

那么上面的结果就是0