leelowmay 2007-4-21 19:40
如何用strcmp?
在c program內,如果我想在txt file 用fgetc 讀一堆英文名,再用strcmp去排次序,可以點做,thx
example (in the txt file)
tree apple ban word apply
result:
apple apply ban tree word
天黑到天亮 2007-5-4 16:14
如何用strcmp?
在c program內,如果我想在txt file 用fgetc 讀一堆英文名,再用strcmp去排次序,可以點做,thx
ccdos 2007-5-18 15:58
qsort() can do it, why do you need strcmp? is it homework? bubble sort is easiest.