麻烦给看看这段程序的错误~~
#include <iostream>#include <stdio.h>#include <exception>using namespace std;int main(){ char str[20]; gets(str); if (*str > '0' && *str < '9') { cout << str << endl; } else { try { throw runtime_error("首字母不是数字,重新输入") << endl; } catch (runtime_error &err) { cout << err.what(); } } return 0;}