vc6.0中运行时不能第二次输入吗?
#include<stdio.h>void main()
{
char s1,s2;
printf("please input the first name:\n");
scanf("%c",&s1);
switch(s1)
{
case 'm': printf("monday");break;
case 't':
printf("please input the second name:\n");
scanf("%c",&s2);
if(s2=='u')
printf("tuesday");
if(s2=='h')
printf("thurday");
break;
case 'w': printf("wendesday");break;
case 'f': printf("friday");break;
case 's':
printf("please input the second name:\n");
scanf("%c",&s2);
if(s2=='a')
printf("saturday");
if(s2=='u')
printf("sunday");
break;
}
printf("\n");
}
为什么这个程序在vc6.0中不能输入second name,而是直接结束了?