作業(yè)1中
checknumber要求單個(gè)"-","+","."返回錯(cuò)誤
最后為"."時(shí)返回錯(cuò)誤。
? if ((str[str.Length - 1] == '.') || (str[str.Length - 1] == '-') || (str[str.Length - 1] == '+'))
??{
??????????return false;
???}
我覺(jué)得這段代碼可以實(shí)現(xiàn)以上4個(gè)功