会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
伯通心智
三千年读史,不外功名利禄;九万里悟道,终归歌酒田园 WeChat: botongxinzhi
博客园
首页
新随笔
联系
订阅
管理
2022年12月19日
Win11 自动登录设置
摘要: Win11 自动登录
阅读全文
posted @ 2022-12-19 12:12 伯通心智
阅读(1492)
评论(0)
推荐(1)
2022年4月26日
linux 简易 socket 客户端调试程序
摘要: 编译:gcc main.c -lpthread 以换行符(\n)分包运行:./a.out 127.0.0.1 8080 以两字节表示包大小(大端字节序)分包运行:./a.out 127.0.0.1 8080 1 运行时发送的数据与接收的数据分别以十六进制和字符串形式输出 此代码为简单调试使用,可根据
阅读全文
posted @ 2022-04-26 14:59 伯通心智
阅读(344)
评论(1)
推荐(0)
2020年5月30日
delphi 判断点在多边形内
摘要: 1 unit MainFM; 2 3 interface 4 5 uses 6 Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, 7 Vcl.Control
阅读全文
posted @ 2020-05-30 14:56 伯通心智
阅读(407)
评论(1)
推荐(0)
2020年1月7日
C 语言快速排序算法以及 qsort
摘要: c 语言冒泡排序与快速排序示例: 运行结果 sort data: [8.6] [1.2] [5.1] [8.3] [6.5] [4.8] [5.3] [5.3] [7.3] [3.6] quick_sort: [1.2] [3.6] [4.8] [5.1] [5.3] [5.3] [6.5] [7.
阅读全文
posted @ 2020-01-07 11:54 伯通心智
阅读(603)
评论(0)
推荐(0)
2019年12月26日
加/减/乘/除四则混合运算(C 语言)
摘要: 逆波兰表达式(也称为后缀表达式) C 语言简单实现 本示例旨在展示逆波兰表达式原理,作简单的混合运算,不作容错处理也不保证结果。若混合运算字符串中有{ [ %] } 等,自行调试解决 列如计算: -20.5 + ( 100 - ( 3 + 2 ) * 8 ) / ( 8 - 5 ) - 10 后缀表
阅读全文
posted @ 2019-12-26 20:26 伯通心智
阅读(1786)
评论(0)
推荐(0)
2019年11月5日
小程序开发注意事项
摘要: 1、onLoad 参数 options 需检测空值 2、小程序里数组与对像的赋值为引用 3、条件判断注意字符串问题,数值最好加 parseInt,数学运算也要注意 4、function 里引用 data 元素使用 this.data.xxx,同理 app.globalData.xxx 5、wx.re
阅读全文
posted @ 2019-11-05 16:17 伯通心智
阅读(230)
评论(0)
推荐(0)
2018年9月20日
树梅派 安装 Qt
摘要: $ sudo apt-get update$ sudo apt-get upgrade$ sudo rpi-update$ sudo apt-get install qt5-default$ sudo apt-get install qtcreator $ sudo apt-get install
阅读全文
posted @ 2018-09-20 09:05 伯通心智
阅读(210)
评论(0)
推荐(0)
树梅派 配置 pin8 pin10(Tx, Rx) 串口
摘要: 树梅派串口配置记忆: 1、关闭蓝牙: sudo systemctl disable hciuart 2、开启串口功能:sudo raspi-config -> 5 Interfacing Options -> P6 Serial ->Enable 3、恢复串口使用:在 /boot/config.tx
阅读全文
posted @ 2018-09-20 09:01 伯通心智
阅读(814)
评论(0)
推荐(0)
2017年11月30日
delphi 获取跃点、网卡序号,添加、删除路由节点
摘要: 1 uses 2 Windows, WinSock, IpHlpApi, IpRtrMib; 3 4 //获取网卡序号 5 function GetGPIndex(const AIP: AnsiString): Cardinal; 6 var 7 ipinfo, info: PIpAdapterInfo; 8 ips: TIpAddrString; ...
阅读全文
posted @ 2017-11-30 14:58 伯通心智
阅读(749)
评论(0)
推荐(0)
2017年11月25日
delphi 绘制二维码
摘要: uses vcl.Graphics, DelphiZXingQRCode; procedure CreateQRCode(AImg: vcl.Graphics.TBitMap; const ACode: String); const IMG_SCALE = 25; //放大倍数 var QRCode: TDelphiZXingQRCode; Row, Column: Inte...
阅读全文
posted @ 2017-11-25 15:48 伯通心智
阅读(2176)
评论(0)
推荐(0)
下一页