C array 問題

2007-10-01 2:35 am
如果我把一些字詞放在array格內,我怎能計算格的內容相同?

thx

回答 (1)

2007-10-01 4:09 am
✔ 最佳答案
use the string function strcmp() or _stricmp () to compare the string (strcmp is case-sensitive while _stricmp is non-case-sensitive)
You can save the words in a array of string or 2D array of character and carry out the operation.


收錄日期: 2021-04-23 23:54:17
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070930000051KK03956

檢視 Wayback Machine 備份