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