0 int b = QString::compare( "abc", "def" ); // b < 0 int c = QString::compare(" abc", "abc" ); // c == 0最近_qt中compare">
赞
踩
- Qt中 QString::compare返回值判定:
- int a = QString::compare( "def", "abc" ); // a > 0
- int b = QString::compare( "abc", "def" ); // b < 0
- int c = QString::compare(" abc", "abc" ); // c == 0
最近同学咨询qt的反而事情 忽然想到当年大名湖畔的qt了/。/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。