01 2022 档案

摘要:使用指针交换数据 void swap(int* num1, int* num2) { int test; test = *num1; *num1 = *num2; *num2 = test; } 非指针交换并排序(低到高) void lowtoheight(int height[],int len) 阅读全文
posted @ 2022-01-31 18:10 乐吴 阅读(27) 评论(0) 推荐(0) 编辑
摘要:InnoDB存储引擎 InnoDB是MySQL数据库的一种存储引擎。InnoDB给MySQL的表提供了事务、回滚、崩溃修复能力和多版本并发控制的事务安全。MySQL从3.23.34a开始就包含InnoDB存储引擎。InnoDB是MySQL第一个提供外键约束的表引擎,而且InnoDB对事务处理的能力也 阅读全文
posted @ 2022-01-28 18:09 乐吴 阅读(55) 评论(0) 推荐(0) 编辑
摘要:mysql> CREATE TABLE class ( `id` int NOT NULL AUTO_INCREMENT, `name` varchar(128) DEFAULT NULL, `teacher` varchar(64) DEFAULT NULL, `count` int DEFAUL 阅读全文
posted @ 2022-01-28 09:50 乐吴 阅读(110) 评论(0) 推荐(0) 编辑
摘要:第一步:打开mysql的安装目录,默认安装目录如下:C:\Program Files\MySQL\MySQL Server 8.0,确认 lib 目录和include 目录是否存在。 第二步:打开VS2019,新建一个空工程,控制台应用程序即可,注意:解决方案平台选择 X64 第三步:右击工程名,打 阅读全文
posted @ 2022-01-25 10:31 乐吴 阅读(1333) 评论(0) 推荐(1) 编辑
摘要:创建一个用户信息表,用来存储用户的如下信息:姓名,手机号码,家庭地址,个人简介,性别,年龄,身份证号。 NOT NULL 非空 PRIMARY KEY 主键 AUTO_INCREMENT 自增 COMMENT 描述 DEFAULT 默认 mysql> create table userinfo ( 阅读全文
posted @ 2022-01-24 15:37 乐吴 阅读(3000) 评论(0) 推荐(1) 编辑
摘要:效果图 可实现自由通讯 客户端: #define _WINSOCK_DEPRECATED_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #include <WinSock2.h> #include <iostream> #include <stdio.h> 阅读全文
posted @ 2022-01-22 18:25 乐吴 阅读(141) 评论(0) 推荐(0) 编辑
摘要:mysql> create database school; #创建数据库school mysql> use school; #选择数据库school mysql> create table class(class_id int, class_name varchar(128), class_tea 阅读全文
posted @ 2022-01-20 17:11 乐吴 阅读(49) 评论(0) 推荐(0) 编辑
摘要:静态效果图 #include <graphics.h> #include <Windows.h> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <mmsyscom.h> #pragma comment(lib, 阅读全文
posted @ 2022-01-18 12:57 乐吴 阅读(56) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> #include <math.h> int main(void) { int a = 3; int b = 10; int c = 100; double data; double x1;//存放一个解 double x2;//存放第二个 data = c*c 阅读全文
posted @ 2022-01-16 14:36 乐吴 阅读(187) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <vector> using namespace std; class twoand { public: vector<int> t1; twoand() { cout << "hello word!" << endl; } vector<i 阅读全文
posted @ 2022-01-14 16:40 乐吴 阅读(38) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示