BOOL IsNegtivesGeminate(LPCSTR sz)
{
int nRes = 0, i;
while(i = *sz++)
if(i < 0)
++nRes;
return nRes % 2 == 0 ? TRUE : FALSE;
}
試驗(yàn)成功!
BOOL IsNegtivesGeminate(LPCSTR sz)
{
int nRes = 0, i;
while(i = *sz++)
if(i < 0)
++nRes;
return nRes % 2 == 0 ? TRUE : FALSE;
}
試驗(yàn)成功!
只有注冊用戶登錄后才能發(fā)表評論。 | ||
【推薦】100%開源!大型工業(yè)跨平臺軟件C++源碼提供,建模,組態(tài)!
![]() |
||
網(wǎng)站導(dǎo)航:
博客園
IT新聞
BlogJava
博問
Chat2DB
管理
|
||
|