小编cam*_*ndo的帖子

ActivityTestRule和IntentTestRule有什么区别

在探索测试时,据我所知,我遇到了ActivityTestRule和IntentTestRule,这是因为IntentTestRule是ActivityTestRule的扩展,并在Espresso Intents中使用。

但从根本上讲,使用这些测试规则的真正目的是什么。

testing android android-espresso

3
推荐指数
1
解决办法
1929
查看次数

键盘有多个浮点输入

我正在从单个scanf输出中读取多个浮点数.

#include<stdio.h>
#include<math.h>
int main()
{ float a,b,c;
  float d,rot1,rot2;
  scanf("%f%f%f ", &a, &b, &c);
  d = sqrt(b*b - 4*a*c);
  rot1 = (-b-d)/(2*a);
  rot2 = (-b+d)/(2*a);
  printf("%f %f", rot1, rot2);
  return 0;
}
Run Code Online (Sandbox Code Playgroud)

它需要4个输入; 但是,我想只为变量a,b和c的地址提供3个输入.我不知道从哪个变量获取额外的输入.当我编写用于获取2变量输入的代码时,它需要3个输入.

c input scanf floating

0
推荐指数
1
解决办法
545
查看次数

标签 统计

android ×1

android-espresso ×1

c ×1

floating ×1

input ×1

scanf ×1

testing ×1