摘要: 删除链表中的某个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 阅读全文
posted @ 2023-06-29 22:14 满城衣冠 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1、char_length(str) (1)计算单位:字符 (2)不管汉字还是数字或者是字母都算是一个字符 2、length(str) (1)计算单位:字节 (2)utf8编码:一个汉字三个字节,一个数字或字母一个字节。 (3)gbk编码:一个汉字两个字节,一个数字或字母一个字节。 例题: ![im 阅读全文
posted @ 2023-06-27 17:54 满城衣冠 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 参考 https://www.cnblogs.com/L-hq815/archive/2012/07/09/2583043.html 效果图: Sever.cpp 点击查看代码 ``` #include #include #include using namespace std; #pragma c 阅读全文
posted @ 2023-06-23 17:56 满城衣冠 阅读(414) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2023.cnblogs.com/blog/3158607/202306/3158607-20230621001345054-1361757278.png) **MainWindow.h** 点击查看代码 ``` #ifndef MAINWINDOW_H #d 阅读全文
posted @ 2023-06-21 00:22 满城衣冠 阅读(246) 评论(0) 推荐(0) 编辑
摘要: Common.h: 点击查看代码 ``` #pragma once #include #include #include #include #include #include #include #include #include #include #pragma comment(lib,"winmm 阅读全文
posted @ 2023-06-20 17:37 满城衣冠 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 效果: 窗口透明 源代码: 点击查看代码 ``` #include #include #include #include using namespace std; struct DM { char buff[256];//字符串 COLORREF color;//颜色 int x,y;//坐标 in 阅读全文
posted @ 2023-06-20 00:25 满城衣冠 阅读(100) 评论(0) 推荐(0) 编辑
摘要: **排序的定义**: 整理表中的元素,使之按关键字递增或者递减有序排列 **排序的稳定性** 如果待排序的列表中存在多个关键字相同的元素,经过排序后这些元素之间的相对次序不变,这种排序算法就是稳定的 ![](https://img2023.cnblogs.com/blog/3158607/20230 阅读全文
posted @ 2023-06-18 14:33 满城衣冠 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 右键项目属性 点击编辑 选择mysql安装目录的include文件夹 包含了头文件之后包含库文件 点击编辑 在mysql安装路径下面选择 选择编辑之后添加 看这个文件下面有没有这个输入的文件依赖 有就代表成功连接数据库 创建数据库: create database student_manager; 阅读全文
posted @ 2023-06-17 21:03 满城衣冠 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2023-05-26 22:34 满城衣冠 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 文件目录结构 common.h #pragma once#include<iostream>#include<graphics.h>//图形库#include<array>//定长数组#include<algorithm>//乱序算法#include<functional>//仿函数#include 阅读全文
posted @ 2023-05-16 22:16 满城衣冠 阅读(112) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示