自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 lseek函数使用

#include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> int main(){ int fd = open("hello",O_RDWR|O_CREAT,0666); write(fd,"helloworld\n",11); cha.

2020-07-09 20:22:36 204

原创 基数排序

#include <iostream>#include <vector>using namespace std;template<class T>void raixSort(T &arr) { vector<vector<int>> bucket(10, vector<int>()); int max = 0; for (int i = 0; i < arr.size(); i++) { max = a

2020-07-02 16:07:00 237

原创 归并排序

#include <iostream>#include <vector>using namespace std;template<class T>void merge(T &arr, int begin, int mid, int end) { vector<int> temp; int i = begin; int j = mid + 1; while (i <= mid && j <= end) {

2020-07-01 17:39:03 115

原创 希尔排序

#include <iostream>#include <vector>using namespace std;template<class T,class size>void shellSort(T &arr, size &size) { size = size / 2; if (size < 1) return; for (int i = size; i < arr.size(); i++) { for (int j =

2020-06-30 17:38:17 96

原创 插入排序

#include <iostream>#include <vector>using namespace std;template<class Iter>void insertSort(const Iter begin, const Iter end) { for (auto i = begin+1; i != end; i++) { auto temp = *i; auto j = i - 1; while ((j >= begin) &a.

2020-06-29 18:18:37 78

原创 选择排序

#include <iostream>#include <vector>#include<algorithm>using namespace std;template<class Iter>void selectSort(const Iter begin, const Iter end) { for (auto head = begin; head != end - 1; head++) { auto temp = head; for .

2020-06-29 15:07:45 63

原创 冒泡排序(从小到大)

#include<vector>#include <iostream>#include <string>using namespace std;template<class Iter>void BubbleSort(Iter begin, Iter end) { int count = 1; for (auto fp = begin; fp != end; fp++) { for (auto sp = begin; sp != (end .

2020-06-26 18:22:27 226

原创 快速排序(从小到大)

#include <iostream>#include <vector>#include<array>using namespace std;void quickSort(vector<int> arr,vector<int>::iterator left, vector<int>::iterator right) { if (left >= right) return; auto i = left;...

2020-06-25 16:34:20 428

转载 SecureCRT信号灯超时时间已到

SecureCRT软件一段时间没写入命令后就报信号灯超时时间已到,断开了session连接,之前没理会,一直以为是跳板机的某种自动识别机制导致的,今天查资料看了下,解决方案如下Options 》 Session Options 》 Terminal 》勾选Send protocol NO-OP————————————————版权声明:本文为CSDN博主「饭一碗」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。原文链接:https://blog.csdn.net/fa

2020-06-17 16:44:31 1420

原创 Navicat pernium连接上Mysql后只能看到information_schema数据库的解决方法

Navicat pernium连接上Mysql后只能看到information_schema数据库是因为mysql的root用户的权限没有。使用命令show grants for root;可以显示root用户的权限。如上图显示,则表明root用户根本没有权限。使用命令GRANT ALL PRIVILEGES ON *.* TO root;让root用户获得所有权限,再打开Navicat后就可以看见所有的数据库。![在这里插入图片描述 ](https://img-blog.csdnimg.cn/20

2020-06-17 01:12:29 2401

原创 MySQL8.0 创建用户与授权

一. 创建用户命令:CREATE USER ‘username’@‘host’ IDENTIFIED BY ‘password’;说明:username:用户名host:指定该用户在哪个主机上可以登陆,本地用户可用localhost,如果想让该用户可以从任意远程主机登陆,可以使用通配符%password:该用户的登陆密码,密码可以为空,如果为空则该用户可以不需要密码登陆服务器例子:C...

2020-02-14 22:39:06 234

原创 socket通信 server端

socket通信 server端#include <stdio.h>#include <string.h>#include <stdlib.h>#include <unistd.h>#include <sys/stat.h>#include <sys/types.h>#include <sys/socke...

2020-01-16 22:25:06 119

空空如也

空空如也

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

TA关注的人

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