process函数是怎么用的
来源:百度知道 编辑:UC知道 时间:2024/07/07 15:04:02
是写一套 自动选举的程序
输入数字0代表结素
要用PROCESS函数 不知道怎么用
#include<stdio.h>
void main()
{
int a,b,c,d;
a=0;
b=0;
c=0;
d=0;
chf:
int ch=' ';
printf("请输入班长后选人的代号");
scanf("%d",&ch);
if (ch==1)
{
a++;
goto chf;
}
else if (ch==2)
{
b++;
goto chf;
}
else if (ch==3)
{
c++;
goto chf;
}
else if (ch==4)
{
d++;
goto chf;
}
else if (ch==0)
printf("选举结束。\n选举结果如下:\n1:%d\n2:%d\n3:%d\n4:%d\n",a,b,c,d);
else
printf("投票无效");
goto chf;
}
输入数字0代表结素
要用PROCESS函数 不知道怎么用
#include<stdio.h>
void main()
{
int a,b,c,d;
a=0;
b=0;
c=0;
d=0;
chf:
int ch=' ';
printf("请输入班长后选人的代号");
scanf("%d",&ch);
if (ch==1)
{
a++;
goto chf;
}
else if (ch==2)
{
b++;
goto chf;
}
else if (ch==3)
{
c++;
goto chf;
}
else if (ch==4)
{
d++;
goto chf;
}
else if (ch==0)
printf("选举结束。\n选举结果如下:\n1:%d\n2:%d\n3:%d\n4:%d\n",a,b,c,d);
else
printf("投票无效");
goto chf;
}
这个process肯定是自己写的
#include<stdio.h>
int a=0,b=0,c=0,d=0;
void process(int id)
{
switch(id)
{
case 1:a++;break;
case 2:b++;break;
case 3:c++;break;
case 4:d++;break;
default:/*输出投票无效*/;break;
}
}
int main()
{
int n;
while(scanf("...")!=EOF)
process(n);
/*输出投票结果*/
return 0;
}
process函数是怎么用的
SYSTEM IDLE PROCESS 这个进程是干什么用的
进程里有个System Idel Process,是干什么用的?
System Idle Process 进程是做什么用的?
System Idle process文件是做什么用的,怎么有事没事的耗我那么多内存!99%啊!
System Idle Process这是怎么啦!
System Idle Process是干什么的,
system idile process 进程是干什么的?
VB里有API函数 内部函数,还有什么函数,函数是怎么做出来的
System Idle Process一直在用电脑的CPU,这是怎么了?