1、 #include <stdio.h> int str_char(char x[], int key) { int len = 0; while(x[len]) len++; int i; for(i = 0; i < len; i++) { if(x[i] == key) return i; ...
分类:
编程语言 时间:
2021-06-02 12:49:19
阅读次数:
0
HBuild X 终端无法使用,无法输入,解决方法 打开HBuild X 的安装文件夹 打开如下路径:plugins\builtincef3terminal\script 打开main.js 文件 if(isWin){ shell = 'C:\\Windows\\System32\\WindowsP ...
分类:
其他好文 时间:
2021-06-02 12:14:47
阅读次数:
0
这题很妙。 多去完成这种级别的题目,建模能力才会真正得到提高。 题解干完springboot活补。 #include<bits/stdc++.h> using namespace std; inline int read() { int x=0,f=1;char c=getchar(); while ...
分类:
其他好文 时间:
2021-06-02 12:02:18
阅读次数:
0
整理自:正点原子PPT 串口简介 详情见STM32F4开发指南 串口通信基本原理 常用串口相关寄存器 1、USART_SR状态寄存器 2、USART_DR数据寄存器 3、USART_BRR波特率寄存器 串口操作相关函数 void USART_Init(); //串口初始化:波特率,数据字长,奇偶校验 ...
分类:
其他好文 时间:
2021-06-02 11:58:55
阅读次数:
0
c语言中统计字符串中数字字符出现的次数。 1、 #include <stdio.h> void int_count(char x[], int cnt[]) { int i; while(x[i]) { if(x[i] >= '0' && x[i] <= '9') { cnt[x[i] - '0'] ...
分类:
编程语言 时间:
2021-06-02 11:38:03
阅读次数:
0
查空行 awk '/^$/{print NR}' demo1.txt 求某一列的和 awk '{sum+=$2} END {print "求和:"sum}' demo2.txt 数字排序 sort -n -t ' ' -k 2 demo3.txt sort -t ' ' -k 2nr demo3.t ...
分类:
系统相关 时间:
2021-06-02 11:35:11
阅读次数:
0
看了网上的许多博客,然后自己总结了下,谢谢大神们的贡献 public class MergeSort { public void sort(int[] arr, int lo, int hi) { if (lo >= hi) return; int mid = lo + (hi - lo)/2; s ...
分类:
编程语言 时间:
2021-06-02 11:26:03
阅读次数:
0
任务描述 有一个长度为n(n <= 240)的正整数,从中取出s(s < n)个数,使剩余的数保持原来的次序不变,求这个正整数经过删数之后最小是多少。 输入格式 第一行输入n和s 输出格式 输出一个整数 输入样例 178543 4 输出样例 13 1 #include<stdio.h> 2 #inc ...
分类:
其他好文 时间:
2021-06-02 11:25:02
阅读次数:
0
DWORD GetTickCount(void); 1) 定义 For Release configurations, this function returns the number of milliseconds since the device booted, excluding any ti ...
分类:
其他好文 时间:
2021-06-02 11:21:18
阅读次数:
0
c语言中使用putchar显示字符串 1、 #include <stdio.h> int put(char x[]) { int i = 0; while(x[i]) putchar(x[i++]); } int main(void) { char str[128]; printf("str: ") ...
分类:
编程语言 时间:
2021-06-02 11:15:10
阅读次数:
0