摘要: 本文介绍,在Windows10系统下,如何彻底删除卸载MySQL 1.停止MySQL服务 开始——所有应用——Windows管理工具——服务,将MySQL服务停止。 2.卸载mysql server 控制面板\所有控制面板项\程序和功能,将mysql server卸载掉。 3.将MySQL安装目录下 阅读全文
posted @ 2022-03-13 09:20 leochan007 阅读(2410) 评论(0) 推荐(1)
摘要: package main import ( "reflect" ) type User struct { ID int Name string } func main() { user := User{} t := reflect.TypeOf(user) if _, ok := t.FieldBy 阅读全文
posted @ 2022-03-10 16:54 leochan007 阅读(228) 评论(0) 推荐(0)
摘要: // encripe_test.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <string> #include <iostream> using namespace std; //int key[] = { 1,2,3,4,5,6,7 }; in 阅读全文
posted @ 2022-03-09 21:27 leochan007 阅读(444) 评论(0) 推荐(0)
摘要: listen tcp :8090: bind: address already in use netstat -nap | grep 8090 kill 12973 后台运行 nohup go run main.go > myout.file 2>&1 & 阅读全文
posted @ 2022-02-26 16:44 leochan007 阅读(44) 评论(0) 推荐(0)
摘要: //功能函数 #include <vector> using namespace std; vector<CString> g_vSysFonts; INT CALLBACK NEnumFontNameProc(LOGFONT* plf, TEXTMETRIC* /*ptm*/, INT /*nFo 阅读全文
posted @ 2020-12-01 13:44 leochan007 阅读(664) 评论(0) 推荐(0)
摘要: #include <fstream>//ifstream读文件,ofstream写文件,fstream读写文件 #include <string>//文本对象,储存读取的内容 #include <iostream>//屏幕输出cout #include <cstdlib>//调用system("pa 阅读全文
posted @ 2020-10-30 09:27 leochan007 阅读(78) 评论(0) 推荐(0)
摘要: // #include <vcl.h> #pragma hdrstop #include "Unit1.h" // #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; class CAppleDemo { publi 阅读全文
posted @ 2020-10-21 15:36 leochan007 阅读(172) 评论(0) 推荐(0)
摘要: 要取得[a,b)的随机整数,使用 (rand() % (b-a))+ a (结果值含a不含b)。 要取得[a,b]的随机整数,使用 (rand() % (b-a+1))+ a (结果值含a和b)。 要取得(a,b]的随机整数,使用 (rand() % (b-a))+ a + 1 (结果值不含a含b)。 (总的来说,通用公式:a + rand() % n ;其中的a是起始值,n... 阅读全文
posted @ 2019-10-31 13:22 leochan007 阅读(148) 评论(0) 推荐(0)
摘要: 1 #include "stdafx.h" 2 #include <iostream> 3 using namespace std; 4 template<typename T> 5 //整数或浮点数皆可使用 6 void bubble_sort(T arr[], int len,int index=0) 7 { 8 int i, j; T temp; 9 for (i = 0; i < len 阅读全文
posted @ 2019-10-17 13:18 leochan007 阅读(215) 评论(0) 推荐(0)
摘要: 1 #include <Windows.h> 2 #include <stdio.h> 3 struct tagCONTAINING_RECORD 4 { 5 int a; 6 char b; 7 int c; 8 int d; 9 }; 10 // 使用 CONTAINING_RECORD 11 void test(char* cb) 12 { 13 tagCONTAINING_RECORD * 阅读全文
posted @ 2019-08-15 19:06 leochan007 阅读(216) 评论(0) 推荐(0)