会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
雪域蓝心
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
11
下一页
2020年11月10日
go 程序设计语言6-13
摘要: 【第6章-方法】type Point struct{X,Y float64} // 普通函数func Distance(p,q Point) float64{ return math.Hypot(q.X - p,X, q.Y-p.Y)} // Point 类型方法func (p Point) Dis
阅读全文
posted @ 2020-11-10 12:13 雪域蓝心
阅读(179)
评论(0)
推荐(0)
2020年11月3日
不需要设定GOPATH 自动编译go程序的makefile的写法
摘要: GO ?= goGOFMT ?= gofmt "-s"PACKAGES ?= $(shell $(GO) list ./...)VETPACKAGES ?= $(shell $(GO) list ./... | grep -v /examples/)GOFILES := $(shell find .
阅读全文
posted @ 2020-11-03 18:46 雪域蓝心
阅读(264)
评论(0)
推荐(0)
2020年10月11日
ipv4 ipv6 客户端 服务端代码
摘要: 客户端: 客户端配置文件 client.ini [IP_FAMILY] ;0-ipv4 1-机器存在ipv6协议,则使用ipv6,否则使用ipv4 2-ipv6 FAMILY=1 [MODE] ;0-普通连接 1-使用getaddrinfo函数取得地址以创建连接 METHOD=1 [IPV4] IP
阅读全文
posted @ 2020-10-11 18:54 雪域蓝心
阅读(256)
评论(0)
推荐(0)
2020年9月24日
go 程序设计语言 1-5
摘要: go 关键字:breakdefaultfuncinterfaceselectcasedefergomapstructchanelsegotopackageswitchconstfallthroughifrangetypecontinueforimportreturnvar go 的值:truefal
阅读全文
posted @ 2020-09-24 11:28 雪域蓝心
阅读(174)
评论(0)
推荐(0)
2020年9月16日
linux 服务端热升级 备份
摘要: linux、windows 下, linux 下的close() / windows 下的 closesocket() 操作只是使相应socket描述字的引用计数-1,只有当引用计数为0的时候,才会触发TCP客户端向服务器发送终止连接请求。 转: https://zhuanlan.zhihu.com
阅读全文
posted @ 2020-09-16 16:53 雪域蓝心
阅读(363)
评论(0)
推荐(0)
2020年9月6日
多重背包单调队列优化
摘要: 未看懂,先记下。 参照视频: https://www.bilibili.com/video/BV1fK4y1b7Xt?from=search&seid=1825034895569999345 https://www.bilibili.com/video/BV1qt411Z7nE?p=2 问题: 有
阅读全文
posted @ 2020-09-06 17:39 雪域蓝心
阅读(318)
评论(0)
推荐(0)
2020年4月6日
笔试题练习网站
摘要: 力扣中文网 牛客网 https://www.nowcoder.com/ta/review-c/review?page=1 https://www.nowcoder.com/ta/review-c/review?page=82 【上机练习】 https://www.nowcoder.com/exam/
阅读全文
posted @ 2020-04-06 18:44 雪域蓝心
阅读(198)
评论(0)
推荐(0)
2020年3月4日
STL 条件变量 std :: condition_variable ->死锁
摘要: 以下代码: // 推送条件变量 std::mutex g_cvMutexPush; std::condition_variable g_cvPush; std::unique_lock <std::mutex> g_lkPush(g_cvMutexPush); // 唤醒推送 std::mutex
阅读全文
posted @ 2020-03-04 19:09 雪域蓝心
阅读(967)
评论(0)
推荐(0)
2020年2月11日
ubuntu redis 跟新及自启动
摘要: *** redis 自启动所需要的文件: init.d目录:https://www.cnblogs.com/20170722-kong/articles/12296835.html redis-server 脚本内容如下: #! /bin/sh ### BEGIN INIT INFO # Provi
阅读全文
posted @ 2020-02-11 21:15 雪域蓝心
阅读(220)
评论(0)
推荐(0)
2020年1月14日
mysql 命令及存储过程
摘要: *** 日期为字符串: select curdate()+0; **** 清空表 TRUNCATE TABLE 表名;
阅读全文
posted @ 2020-01-14 17:04 雪域蓝心
阅读(132)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
11
下一页
公告