标题:请教有关于while的问题。
取消只看楼主
lxhf546
Rank: 1
等 级:新手上路
帖 子:26
专家分:0
注 册:2007-1-19
 问题点数:0 回复次数:0 
请教有关于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);}表示什么意思啊??
}
}
搜索更多相关主题的帖子: employee please number 用户 
2007-05-02 22:07



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-136623-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014418 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved