自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 【指针-指针数组中元素需要释放】

struct.h#ifndef __STRUCT_H#define __STRUCT_H#define SIZE 20//分配的Node空间大小typedef struct { char m_data1[64]; char m_data2[64];}Node;typedef struct MyStruct { Node **m_ptrToArr; //存放指针数组地址 long m_size;}List;List* MyMalloc(int size);#endif

2022-02-17 23:49:09 527

原创 【mySQL-基本操作】

持续更新#创建表create table table_user_test ( id int, name varchar(50));#查看自己所在的仓库select database();#查看当前仓库的所有的表show tables ;#显示指定的表desc table_user;#修改表名alter table table_user rename to table_test;alter table table_test rename to table_user;#

2022-02-15 11:52:26 414

原创 【排序-归并排序】

#include <iostream>using namespace std;template<class T>void Print(T *src, int size) { for (int i = 0; i < size; i++) { cout << src[i] << " "; } cout << endl;}template<class T>void Merage(

2022-02-15 00:52:50 217

原创 【排序-快速排序】

#include <iostream>using namespace std;template<class T>void Print(T *src, int size) { for (int i = 0; i < size; i++) { cout << src[i] << " "; } cout << endl;}/** * @brief * * @tparam T *

2022-02-15 00:08:33 226

原创 【排序-希尔排序】

#include <iostream>using namespace std;template<class T>void Print(T *src, int size) { for (int i = 0; i < size; i++) { cout << src[i] << " "; } cout << endl;}template<class T>void ShellSo

2022-02-13 23:02:11 237

原创 【排序-插入排序】

#include <iostream>using namespace std;template<class T>void InsertionSort(T *src, int size) { for (int i = 1; i < size; i++) { T temp = src[i]; int j = i - 1; while (temp < src[j] && j >= 0) {

2022-02-13 18:21:40 132 1

原创 【排序-选择排序】

#include <iostream>using namespace std;template<class T>void SelectionSort(T *src, int size) { for (int i = 0; i < size - 1; i++) { T temp = src[i]; for (int j = i + 1; j < size; j++) { if (src[j] <

2022-02-13 17:52:01 256

原创 【排序-冒泡排序】

#include <iostream>using namespace std;template<class T> void BullleSort(T *src, int size) { for (int i = 0; i < size - 1; i++) { for (int j = 0; j < size - 1 - i; j++) { if (src[j] > src[j + 1]) {

2022-02-13 17:30:51 278 1

原创 【C++-String-删除指定字符】

str.erase(std::remove(str.begin(), str.end(), ‘a’ ), str.end());

2022-02-11 15:52:49 5698 1

原创 【数据结构-双链表】

DoubleLinkList.h#pragma once#include <cstdio>#include <cstring>#include <cstdlib>#include <cstring>#define DATASIZE 64class Node {public: char m_data1[DATASIZE]; char m_data2[DATASIZE]; Node* next; /* 指向下一个节点的指针 */ Nod

2022-02-10 02:12:22 378 1

原创 【linux-程序运行时加载动态库路径顺序】

在linux系统中,如果程序需要加载动态库,它会按照一定的顺序(优先级)去查找:优先级(1:最高) 路径1 编译时指定链接的动态库的路径2 环境变量LD_LIBRARY_PATH所指定的路径3 /etc/ld.so.conf文件中指定的路径,修改后运行ldconfig命令生效4 系统默认动态库路径:/lib/5 系统默认动态库路径:/usr/lib/环境变量LIBRARY_PATH可以指定编译时搜索动态库的路径; 环境变量LD_LIBRARY_PATH可以指定程序运行时动态库搜索和

2022-02-08 15:48:36 649 1

空空如也

空空如也

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

TA关注的人

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