排序
【C++】使用cpp-httplib库实现http通讯
下载 GitHub:https://github.com/yhirose/cpp-httplib 仅需下载头文件httplib.h后导入至项目中即可,非常简单 服务端 现在以我的个人通讯录管理系统项目中的云端备份功能为例,简单的讲解这个...
【C】交换,交换,交换!(指针&函数)
代码 #include<stdio.h> void swap(int *x,int *y){ int t; t=*x; *x=*y; *y=t; } int main(){ int a,b,*pa,*pb; pa=&a;pb=&b; scanf('%d %d',&a,&b); swap(pa,pb); printf('%d %d',...
【深基2.例12】上学迟到
题目描述 学校和 yyy 的家之间的距离为 s 米,而 yyy 以 v 米每分钟的速度匀速走向学校。 在上学的路上,yyy 还要额外花费 10 分钟的时间进行垃圾分类。 学校要求必须在上午 8:00 到达,请计算...
【模拟】旋转矩阵
#include<stdio.h> int main(){ int n; scanf('%d',&n); int a[n][n]; int top=0,down=n-1,left=0,right=n-1,count=1; while(count<=n*n){ for (int i=left;i<=right;i++){ a[top]...
【C++】cpp-httplib研究链接
https://github.com/yhirose/cpp-httplib https://blog.csdn.net/qq_40344790/article/details/135246178 https://juejin.cn/post/7169574207632703519 https://www.bilibili.com/video/BV1Xt4y...
【C】使用函数递归实现二分查找数组最大值
#include <stdio.h> //二分查找最大值 int Max(int r[],int low,int high){ int mid,maxL,maxR; if (low==high){ return r[low]; } else{ mid=(high+low)/2; maxL=Max(r,low,mid); maxR=Max(...