摘要: Win11 自动登录 阅读全文
posted @ 2022-12-19 12:12 伯通心智 阅读(1220) 评论(0) 推荐(1) 编辑
摘要: 编译: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 伯通心智 阅读(321) 评论(1) 推荐(0) 编辑
摘要: 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 伯通心智 阅读(345) 评论(1) 推荐(0) 编辑
摘要: 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 伯通心智 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 逆波兰表达式(也称为后缀表达式) C 语言简单实现 本示例旨在展示逆波兰表达式原理,作简单的混合运算,不作容错处理也不保证结果。若混合运算字符串中有{ [ %] } 等,自行调试解决 列如计算: -20.5 + ( 100 - ( 3 + 2 ) * 8 ) / ( 8 - 5 ) - 10 后缀表 阅读全文
posted @ 2019-12-26 20:26 伯通心智 阅读(1528) 评论(0) 推荐(0) 编辑
摘要: 1、onLoad 参数 options 需检测空值 2、小程序里数组与对像的赋值为引用 3、条件判断注意字符串问题,数值最好加 parseInt,数学运算也要注意 4、function 里引用 data 元素使用 this.data.xxx,同理 app.globalData.xxx 5、wx.re 阅读全文
posted @ 2019-11-05 16:17 伯通心智 阅读(209) 评论(0) 推荐(0) 编辑
摘要: $ 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 伯通心智 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 树梅派串口配置记忆: 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 伯通心智 阅读(798) 评论(0) 推荐(0) 编辑
摘要: 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 伯通心智 阅读(711) 评论(0) 推荐(0) 编辑
摘要: 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 伯通心智 阅读(2072) 评论(0) 推荐(0) 编辑