请教有关于while的问题。
QUOTE:
QUOTE:
while(1)
{
printf("please input your choose:");
scanf("%d",&selection); /*读取用户输入选项 */
if(selection==1||selection==2)
{
printf("please input the employee number:");
scanf("%d",&Index); /*读取员工的编号 */
if(Index<10)
{
printf("****Employee Number is %d\n",Index);
printf("The salary is %d\n",Employee[Index]);
}
else
{
printf("##The error employee number!!\n");
exit(1); 请问这里为什么不是exit(0);呢? while(1){.....exit(1);}表示什么意思啊??
}
}
{
printf("please input your choose:");
scanf("%d",&selection); /*读取用户输入选项 */
if(selection==1||selection==2)
{
printf("please input the employee number:");
scanf("%d",&Index); /*读取员工的编号 */
if(Index<10)
{
printf("****Employee Number is %d\n",Index);
printf("The salary is %d\n",Employee[Index]);
}
else
{
printf("##The error employee number!!\n");
exit(1); 请问这里为什么不是exit(0);呢? while(1){.....exit(1);}表示什么意思啊??
}
}