如何让scanf接受两个字符型输入?
我要让程序接受两个选择的输入,下面这样做对不对?printf("\nDo you want the more comfortable seats and the upgraded custom gears? The charges are $50 and $300 respectively. Please enter your choice. yn4/yn5\n");
scanf(" %c%c", &yn4, &yn5);
但是老是出错运行不了。