正则表达式为什么输入不了?

img

为什么输入不了两个数组?

输入方式不对,稍微改下:
scanf("%[^ ^\n]%c",a, &ch);
scanf("%[^ ^\n]%c",b, &ch);

不是a[i],b[i]