多实例输入 字符串 char str[100]; while(cin.getline(ch,100,'\n)){ ...... ...... ...... } 数 int n; while(cin>>n){ ...... ...... ...... }