码迷,mamicode.com
首页 >  
搜索关键字:ret    ( 30742个结果
软件模拟spi c语言实现
c语言实现软件spi接口,需要设备有三个IO设置为GPIO功能 ...
分类:编程语言   时间:2020-11-26 15:12:26    阅读次数:8
Ubuntu虚拟机中时间与windows时间不一致的问题解决
方法一:设置时区 在ubuntu的终端中执行命令: sudo tzselect 依次选择: 4) Asia 9) China 1) Beijing Time1) Yes之后会有提示如下: You can make this change permanent for yourself by appen ...
分类:Windows程序   时间:2020-11-26 14:47:22    阅读次数:16
axios拦截器的用法
axios的拦截器可以在请求或者返回被Then或者是catch处理之前对他们进行拦截。拦截器的作用。主要是在发送请求之前做一些操作,比方说可以对对一些数据进行处理。比如给每个请求都给添加token或者给。或者是在相应之前请求拦截器。可以对返回的数据进行二次加工。例如在发送请求前相应进行操作axios.interceptors.request.use((config)=>{returnconf
分类:移动开发   时间:2020-11-26 14:33:31    阅读次数:13
字符串 KMP
KMP https://www.zhihu.com/question/21923021 的总结 实现 string : 主体字符串 (用 i 遍历) sptr : 匹配字符串 (用 j 遍历) string[i] != sptr[j] 时,如果 sptr 前 j-1 部分存在前缀与后缀相同的部分,只 ...
分类:其他好文   时间:2020-11-26 14:31:26    阅读次数:4
操作系统-操作系统-内核中的屏幕打印(下)
操作系统-操作系统-内核中的屏幕打印(下)接着之前的实现顺序来,对PrintString进行实现intPrintString(constchar*s)//需f要对参数进行判断,如果参数为空,返回-1{intret=0;if(s!=NULL){while(*s){ret+=PrintChar(*s++);//不为空时进行循环,直到遇见结束符结束}}else{ret=-1;}returnret;}//
分类:其他好文   时间:2020-11-26 14:25:31    阅读次数:5
linux 设置cpu占用率
1,环境安装 ## #编译环境 yum groupinstall -y "Development Tools" ##cat cpu_load #以下为代码 #include <iostream> #include <pthread.h> #include <time.h> #include <mat ...
分类:系统相关   时间:2020-11-26 14:19:38    阅读次数:10
RGB全彩LED——树莓派基于C语言教程
1 #include <stdio.h> 2 #include <wiringPi.h> 3 #include <softPwm.h> 4 5 const int Red_Pin = 9; 6 const int Green_Pin = 10; 7 const int Blue_Pin = 11; ...
分类:编程语言   时间:2020-11-25 12:45:11    阅读次数:8
题解 P4587 【[FJOI2016]神秘数】
P4587 [FJOI2016]神秘数 题意简述: 一个可重复数字集合S的神秘数定义为最小的不能被S的子集的和表示的正整数。例如S={1,1,1,4,13} 现给定n个正整数a[1]..a[n],m个询问,每次询问给定一个区间l,r,求由a[l],a[l+1],…,a[r]所构成的可重复数字集合的神 ...
分类:其他好文   时间:2020-11-25 12:25:21    阅读次数:5
板子-__int128
__int128 是比 long long 还要大的数据类型(\(max = 2^{128}-1\)) 其输入和输出不能用常规方法,用 read() 和 write() 函数代替 #include<bits/stdc++.h> using namespace std; __int128 read(i ...
分类:其他好文   时间:2020-11-24 12:37:39    阅读次数:6
mormot2 MultiPartFormData
mormot2 MultiPartFormData 1)MultiPartFormData 单元文件:mormot.core.buffers.pas TMultiPart = record TMultiPartDynArray = array of TMultiPart; /// decode mu ...
分类:其他好文   时间:2020-11-24 12:24:49    阅读次数:7
30742条   上一页 1 ... 67 68 69 70 71 ... 3075 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!