- 博客(14)
- 收藏
- 关注
原创 vue axios下载pdf文件空白的问题
也不好使,使用原生axios也不好使,这时发现mock会自动将responseType设置为空。将import './mock’注释掉即可。下载pdf时,发现设置。
2023-06-01 13:43:49
1259
2
原创 算法设计与分析基础 第三版 课后答案1.1
1.1.5 #include <iostream> using namespace std; int a[]={2,5,5,5}; int b[]={2,2,3,5,5,7}; int i,j; int main(){ while(i<4&&j<6){ if(a[i]==b[j]){ cout<<a[i]<<" "; i++;j++; } else if(a[i]>b[j])
2021-02-23 20:43:25
10558
2
原创 数论学习笔记
文章目录最大公因数gcd最小公倍数lcm扩展欧几里得素数判断素数表获取质因子分解组合数求逆元 最大公因数gcd 辗转相除法 定理: a,b属于正整数,gcd(a,b)=gcd(b,a%b) int gcd(int x,int y){ if(y==0)return x;//当x=y时,x就是最大公因数 else return gcd(y,x%y);//递归 } #include <iostream> using namespace std; int gcd(int x,int y){
2021-01-24 21:20:47
217
原创 git基本操作总结
创建版本仓库 git init 版本创建 git add 文件或目录 git commit -m ‘版本说明信息’ 查看版本记录 git log 简单查看版本记录 git log --pretty=oneline 版本回退 git reset --hard HEAD^ git reset --hard 版本序列号 查看操作记录 git reflog 撤销工作区修改 git checkout – 文件 撤销暂存区修改 git reset HEAD 文件 git checko.
2020-12-17 12:24:40
136
原创 C++若干数据首尾相连构成环,找到连续4个数之和最大的一段
#include<iostream> using namespace std; int main() { int aa, i, n = 0, j, max = 1, s = 0; int a[20] = { 0 }; cin >> aa; while (aa != -1) { a[n++] = aa; cin >> aa; } if (a[3] == 0) { cout << "invalid input"; return 0; } fo
2020-11-28 12:30:31
1066
原创 C++递归二分法求最大值
#include <iostream> #include <cmath> #include <cstdio> #include <algorithm> #include <stdlib.h> using namespace std; int Max(int *a, int l, int r,int& maxValue) { if(l == r) { maxValue = a[l] ; return maxValue;
2020-11-24 10:58:21
877
原创 C++硬币问题
#include <iostream> #include <string.h> using namespace std; const int V[6]={1,5,10,50,100,500}; int C[6]; int A; void solve(){ int ans = 0; for(int i = 5;i>=0;i--){ int t = min(A/V[i],C[i]); A-=t*V[i]; ans+
2020-10-28 18:39:30
1405
原创 命令行
命令行 WIN 1.进入当前路径下的子目录"cd 子目录名" 进入当前路径下的父目录"cd …" 回到home目录下"cd ~" 2.显示a.txt “type a.txt” 3.希望知道当前路径"freopen(“test.txt”,“w”,stdout)“创建并找到该文件 4.用列表给出当前进程"tasklist” 终止进程"taskkill/pid"或"taskkill/im<映像名>" 查看更多选项"taskkill/?" 5.执行a.exe 进入其所在目录并输入"a" 6.重定向abc
2020-10-10 11:20:41
290
原创 BUG1:C语言double输入
C语言float输入 程序1: #include<stdio.h> #include<math.h> void main() { double x1, x2, y1, y2; scanf_s("%f%f%f%f", &x1, &y1, &x2, &y2); printf("%.2f\n", sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))); } 程序2: #include
2020-10-09 19:08:48
433
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅