自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (2)
  • 收藏
  • 关注

转载 C++ 智能指针的正确使用方式

https://www.cyhone.com/articles/right-way-to-use-cpp-smart-pointer/

2021-06-30 09:52:18 92

转载 Ubuntu截图工具推荐

https://blog.csdn.net/u011017694/article/details/105042378

2021-06-29 16:41:56 91

原创 CMake问题汇总

1、找不到标准库头文件fatal error: vector: 没有那个文件或目录原因:main文件名为.c后缀,只查找了c语言标准库解决方案:将.c后缀改为.cc 或.cpp2、链接报undefined reference to `pthread_create'原因:cmake像g++使用c++11特性一样,有-std=c++11,需要加上-pthread解决方案:set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11

2021-06-29 16:39:08 903

转载 Ubuntu 内核升级,导致无法正常启动

https://www.cnblogs.com/wanthune/p/10827810.html

2021-06-28 10:34:00 934

原创 Visual assist 关于bool变量不可识别的问题

Visual assist 的bool变量不能识别的问题是由于其他库包含了bool变量的宏修改方法1、在sln路径下添加va_stdafx.h文件,添加宏如下,并在文件结尾保留空白行#define bool bool 2、选择VASSISTX->Visual assitst options->Performance->Rebuild 3、重启Visual Studio

2015-02-27 11:49:34 1197

原创 求解答 strcmp的实现的一些细节

参加一个知名企业的面试,让写strcmp,当时写的很复杂,

2014-07-16 21:49:23 351

原创 stack overflow

1、临时变量申请空间过大2、递归

2014-07-14 22:13:42 318

原创 Fibonacci数的矩阵实现和线性递增实现

矩阵实现,时间复杂度为(l

2014-06-13 12:39:33 386

原创 x的n次方,复杂度为lg(n)

double xn(int x,int n){ if (n==1) { return x; } int i = n/2; double result = xn(x,i); if (0== n%2) { return result*result; } else

2014-06-12 12:13:40 1488

原创 SQL语句,更新数据库中的字段,该字段包含'A',但不包含'B'

update table set name ='CCC' where name like '%A%' and switch_name not like '%B%';

2014-06-11 15:15:24 1946

原创 快速排序C++代码实现

//交换位于i和j处的值void exchange(int *a,int i,int j){ int temp = a[i]; a[i] = a[j]; a[j] = temp;}int part(int *a,int low,int high){ int temp = a[high]; int i = low; fo

2014-06-10 17:14:53 307

原创 堆排序的C++代码实现

void exchange(int *a,int i,int j){ int temp = a[i]; a[i] = a[j]; a[j] = temp;}void max_heapify(int *a,int i,int length){ int l = i*2+1; int r = (i+1)*2; int lar

2014-06-10 15:42:31 631

原创 分治思想的求最大子数组和代码实现(C++)

头文件#pragma oncestruct Max_Sum_Rusult{ int sum; int left; int rigth;};class find_MaxSum_SubArray{public: static Max_Sum_Rusult getMaxSumOfSubArray(int *a,int left,

2014-06-07 16:19:09 442

原创 归并排序与插入排序-C++实现

极限值的头文件#include void merge(int *aList,int l,int m,int h){    int n1 = m-l+1;    int n2 = h-m;    int *left = new int[n1+1];    int *right = new int[n2+1];    int i,j,k;    for(i= 0;i

2014-06-07 12:57:05 380

mysql-8.0.25-linux 64位版本源码

mysql-8.0.25-linux 64位版本源码

2021-06-29

ISA交互式服务架构

ISA交互式服务架构 标准 时代华纳 协议

2012-02-06

空空如也

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

TA关注的人

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