☆─────────────────────────────────────☆
slipper (ohh) 于 (Thu Oct 6 23:18:53 2005) 提到:
I want to use switch to compare a (char c[10]) variable)
i use: switch (c){
case "k":...
}
I received compilation error said I can not pass c as switch statment
parameter
. how could I compare if a string = sth by using switch statement? Thanks
☆─────────────────────────────────────☆
queue (秦岭) 于 (Fri Oct 7 00:11:10 2005) 提到:
switch statements dpes NOT accept char array ty