作者musie (Sirius)
看板EE_DSnP
標題[問題] getStrVal的判斷
時間Thu Apr 10 23:30:36 2008
// If 's' is a valid variable name, return "getVarVal(s, n)";
// else if 's' is a number, convert it to ModNum (e.g. by "myStr2Int") and
// assign to 'n'
在這邊我想請問一下,如何檢查string 裡面是不是int呀。
有特別的指令嗎??
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.248.196
1F:推 ric2k1:Please take a look at the files in "util" directory!! 04/10 23:32
2F:→ musie:喔..我找到了 ~"~ 謝謝老師.. 04/10 23:36