摘要: // ConsoleApplication1.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <iostream> int _tmain(int argc, _TCHAR* argv[]) { //因为-1变成255 int a = -1; 阅读全文
posted @ 2021-11-03 12:25 iwetuan 阅读(556) 评论(0) 推荐(0)
摘要: src.go package archive_tar import ( "archive/tar" "archive/zip" "fmt" "io" "os" ) type files struct { name, content string } //写测试 func TarWriteTest() 阅读全文
posted @ 2021-11-01 17:02 iwetuan 阅读(89) 评论(0) 推荐(0)
摘要: package main import ( "bufio" "fmt" "log" "os" "time" ) func main() { //开始时间 t1 := time.Date(2020, 3, 1, 0, 0, 0, 0, time.Local) //结束时间 t2 := time.Dat 阅读全文
posted @ 2021-10-25 18:41 iwetuan 阅读(35) 评论(0) 推荐(0)
摘要: package main import "fmt" type dummy interface { show() } type student struct{} func (stu *student) show() { } func xx() dummy { var stu *student if s 阅读全文
posted @ 2021-10-20 15:12 iwetuan 阅读(178) 评论(0) 推荐(0)
摘要: 转载 https://www.cnblogs.com/yimaochun/archive/2011/07/29/2120653.html 在.Cxx文件添加 #pragma comment( linker, "/subsystem:"windows" /entry:"mainCRTStartup"" 阅读全文
posted @ 2021-10-15 13:58 iwetuan 阅读(455) 评论(0) 推荐(0)
摘要: Rust实现打印变量的的类型名 use std::fmt::{Debug}; #[derive(Debug)] enum Unit{ P1,P2 } //实行trait bound fn type_v<T>(t:T) where T:Debug { println!("{:?},{}",t,core 阅读全文
posted @ 2021-10-10 14:09 iwetuan 阅读(494) 评论(0) 推荐(0)
摘要: 1.直接操作注册表 路径: 计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SecurityHealthService 修改start属性的值 REG_DWORD 为4 2.使用C#编码实现 using Microsoft.Win32 阅读全文
posted @ 2021-09-27 22:13 iwetuan 阅读(467) 评论(0) 推荐(0)
摘要: Build Error: go build -o D:\SRY\P3\2.sqlscriptgo__debug_bin.exe -gcflags all=-N -l d:\SRY\P3\2.sqlscriptgo directory . outside available modules (exit 阅读全文
posted @ 2021-09-17 15:40 iwetuan 阅读(477) 评论(0) 推荐(0)
摘要: 注意点1: 类中的operator new 和operator delete为static 遵循 访问限制 注意点2 operator delete 和operator new的第一个参数固定,通过第二个参数匹配new和delete 注意点3 operator delete,会在构造函数发生异常时自 阅读全文
posted @ 2021-09-15 10:32 iwetuan 阅读(150) 评论(0) 推荐(0)
摘要: CMakeLists.txt cmake_minimum_required(VERSION 3.13) cmake_minimum_required(VERSION 3.13) #项目名称 project(cwrapcpp) #要放到这个位置,表示之后添加的源文件,都是用utf8编码 add_com 阅读全文
posted @ 2021-09-08 18:48 iwetuan 阅读(216) 评论(0) 推荐(0)