会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
iwetuan
博客园
管理
上一页
1
2
3
4
5
6
7
下一页
2021年11月3日
C++ 浮点数比大小
摘要: // 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)
2021年11月1日
go语言使用pkg的archive的包的练习
摘要: 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)
2021年10月25日
时间区间内,线性产生时间点golang
摘要: 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)
2021年10月20日
golang 返回的nil不为空的情况
摘要: 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)
2021年10月15日
去掉Console黑窗口(Qt和VS)
摘要: 转载 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)
2021年10月10日
rust实现打印变量的类型
摘要: 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)
2021年9月27日
使用C#关闭 windows defender服务
摘要: 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)
2021年9月17日
window调试go程序 错误 outside available modules
摘要: 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)
2021年9月15日
c++重载operator new的练习
摘要: 注意点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)
2021年9月8日
C语言包装C++对外提供接口(使用CMake工具)
摘要: 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)
上一页
1
2
3
4
5
6
7
下一页