第1个回答 推荐于2016-09-23
#include <iostream>
using namespace std;
int main()
{
while(true)
{
char temp;
cin >> temp;
if ( (temp <= 'Z' && temp >= 'A') || (temp <= 'z' && temp >= 'a') )
cout << temp << " is character" << endl;
else if (temp >= '0' && temp <= '9')
cout << temp << " is number" << endl;
}
}本回答被提问者采纳