自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 vue axios下载pdf文件空白的问题

也不好使,使用原生axios也不好使,这时发现mock会自动将responseType设置为空。将import './mock’注释掉即可。下载pdf时,发现设置。

2023-06-01 13:43:49 959 1

原创 linux docker安装方式

curl https://get.docker.com/ | sudo sh

2023-05-31 23:46:12 87

原创 PCtoLCD2002生成OLEDFONT时乱码问题

对PCtoLCD2002进行如下设置即可。

2023-04-16 23:16:54 433

原创 LL库定义USE_FULL_LL_DRIVER

keil中定义USE_FULL_LL_DRIVER的位置。

2023-03-27 16:39:21 339

原创 解决中断I2C起始信号无法产生

STM32 硬件I2C无法产生起始信号

2023-03-09 00:16:00 800

原创 filezilla无法连接到服务器

filezilla无法连接到服务器

2023-03-07 23:54:26 703

原创 算法设计与分析基础 第三版 课后答案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 9962 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 128

原创 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 83

原创 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 853

原创 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 759

原创 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 1261

原创 命令行

命令行WIN1.进入当前路径下的子目录"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 195

原创 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 335

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除