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