问题描述:填空题1
提示:这里描述项目中遇到的问题:
例如:数据传输过程中数据不时出现丢失的情况,偶尔会丢失一部分数据
APP 中接收数据代码:
@Override
#include <stdio.h>
void fun( int *px, int *py)
{
/**********found**********/
int __(1)__ ;
scanf( "%d", &k );
/**********found**********/
while __(2)__
{ if (k>0 ) a++;
if(k<0 ) b++;
/**********found**********/
__(3)__;
}
*px=a; *py=b;
}
main()
{ int x, y;
fun( &x, &y );
printf("x=%d y=%d\n", x,y );
}
原因分析:
第一个空: 先看缺少几个变量的定义,就定义几个变量,不能有缺少
第二个空和第三个空:都是根据题意来,仔细阅读。