摘要:
删除链表中的某个x数据 void Del_x(LinkList& L, ElementType x) { LNode* pre = L, * p = L->next, * q; while (p != null) { if (p->data == x) { q = p; p = p->next; p 阅读全文
摘要:
1、char_length(str) (1)计算单位:字符 (2)不管汉字还是数字或者是字母都算是一个字符 2、length(str) (1)计算单位:字节 (2)utf8编码:一个汉字三个字节,一个数字或字母一个字节。 (3)gbk编码:一个汉字两个字节,一个数字或字母一个字节。 例题:  **MainWindow.h** 点击查看代码 ``` #ifndef MAINWINDOW_H #d 阅读全文
摘要:
Common.h: 点击查看代码 ``` #pragma once #include #include #include #include #include #include #include #include #include #include #pragma comment(lib,"winmm 阅读全文
摘要:
效果: 窗口透明 源代码: 点击查看代码 ``` #include #include #include #include using namespace std; struct DM { char buff[256];//字符串 COLORREF color;//颜色 int x,y;//坐标 in 阅读全文
摘要:
**排序的定义**: 整理表中的元素,使之按关键字递增或者递减有序排列 **排序的稳定性** 如果待排序的列表中存在多个关键字相同的元素,经过排序后这些元素之间的相对次序不变,这种排序算法就是稳定的 ![](https://img2023.cnblogs.com/blog/3158607/20230 阅读全文
摘要:
右键项目属性 点击编辑 选择mysql安装目录的include文件夹 包含了头文件之后包含库文件 点击编辑 在mysql安装路径下面选择 选择编辑之后添加 看这个文件下面有没有这个输入的文件依赖 有就代表成功连接数据库 创建数据库: create database student_manager; 阅读全文
摘要:
1. select* from employees order by hire_date desc limit 1; 笔记: limit 0,1; 使用limit关键字 从第0条记录 向后读取一个,也就是第一条记录 2.select * from test LIMIT 3 OFFSET 1;(在my 阅读全文
摘要:
文件目录结构 common.h #pragma once#include<iostream>#include<graphics.h>//图形库#include<array>//定长数组#include<algorithm>//乱序算法#include<functional>//仿函数#include 阅读全文