- 博客(8)
- 收藏
- 关注
原创 jmeter聚合报告中的99%line是什么意思
今天做软件测试题的时候,遇到这样一道题——jmeter聚合报告中的99%line是什么意思,我以为是99%请求的平均响应时间,结果居然不是。一组数由小到大进行排列,找到他的第90%个数(假如是12),那么这个数组中有90%的数将小于等于12。用在性能测试的响应时间也将非常有意义,也就是90%请求响应时间不会超过12 秒。翻译过来就是99%请求的最大响应时间。翻阅资料了解了一下,
2024-10-31 11:50:35
380
原创 [Error] ‘InsertNextNode‘ was not declared in this scope
出现这个错误的原因是函数调用时,子函数ListInsert调用另一个子函数InsertNextNode,而ListInsert函数的位置在上面无法调用下面的那个子函数,把两个函数位置调换一下即可。下面是我当时出错的代码 :(一个简单的单链表)
2024-05-04 19:31:47
257
原创 [Error] a function-definition is not allowed here before ‘{‘ token
今天写代码出现了这个问题:[Error] a function-definition is not allowed here before '{' token。因为代码比较简单就没有细看,搜索发现是少了一个},括号的不匹配导致的。
2024-04-30 15:53:40
693
原创 PTA N组数求和
#include<stdio.h>int main(){ int T; scanf("%d",&T); int i=1,n=1,b; int j; for(i=1;i<=T;i++) { int s=0; //每次重置数字和s scanf("%d",&n); for(j=1;j<=n;j++)//嵌套循环 要再次赋初值 { scanf("%d ",&b); ...
2021-11-25 21:47:44
403
转载 如何输入多组数字(未知组数)
#include <stdio.h> int main() { int a,b; while(scanf("%d%d",&a,&b), a != 0 || b != 0) //用while循环,右边是循环进行的条件 printf("%d\n",a+b); return 0; }
2021-11-22 23:09:26
462
原创 PTA装睡
#include<stdio.h>int main(){ int N; scanf("%d",&N); char name[4];//题目要求字符数组至少3位 ,字符串的输入 int b,c,i=1; for(;i<=N;i++) {//注意for循环的括号 scanf("%s %d %d",&name,&b,&c);//字符串的输出用%s if(15>b||b>20||50>c||c>70...
2021-11-22 22:52:48
1606
1
原创 PTA简单的四则运算
#include<stdio.h>#include<math.h>int main(){ double x,y; char a; scanf("%lf %c %lf",&x,&a,&y); switch (a)//这里要写出判断的量 { case '+':printf("%.2f",x+y);break; case '-':printf("%.2f",x-y);break; case '*':printf("%.2f",1.0...
2021-11-09 17:33:24
1018
原创 PTA求n的阶乘表
#include<stdio.h>int main(){ int n,i=1,a=1; scanf("%d",&n); for(;i<=n;i++) { a*=i; printf("%-4d%-20.0d\n",i,a);//格式化 } return 0;}提交上去 部分正确注意后面的输出(虽然我也不理解)
2021-10-09 09:34:14
649
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人