![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
xue_wu_zhi_jing
码龄五十年
展开
-
c++ 实现倒计时程序 使用clock()
倒计时程序原创 2021-12-24 13:35:09 · 3587 阅读 · 0 评论 -
C++汉诺塔
#include <iostream>#include <vector>#include <algorithm>using namespace std;void hannuota(int &res, int shikuai, string a, string b, string c){ if (shikuai == 1) { res++; cout << "第" << res .原创 2021-12-20 18:13:57 · 460 阅读 · 0 评论 -
C++时间戳转换
#include <iostream>#include <time.h>#include <unistd.h>using namespace std;int main(){ time_t t; struct tm p, q; time(&t); for (int i = 0; i < 6; i++) { t -= 10; char time22[30]; .原创 2021-10-29 17:51:44 · 194 阅读 · 0 评论 -
C++查找英文书籍最多的单词
#include<iostream>#include<fstream>#include<string>#include<set>#include<map>#include<vector>#include<algorithm>using namespace std;bool cmp(pair<string, int> &a, pair<string, int> &b) .原创 2021-10-20 17:32:27 · 74 阅读 · 0 评论 -
(超简单)cpp-httplib搭建服务器和客户端
这里使用了httplib.h,是直接使用的别人封装好的库,超简单搭建服务器和客户端,但是要学习还是得自己一步一步的去敲,不要用库,学会在用这个库就简单服务端#include "httplib.h"#include "json.hpp"#include <iostream>#include <thread>using namespace std;using namespace httplib;struct test{ string name; int原创 2021-10-13 10:34:24 · 7420 阅读 · 3 评论