摘要: // #include <vcl.h> #pragma hdrstop #include "Unit1.h" // #pragma package(smart_init) #pragma resource "*.dfm" TForm1 *Form1; class CAppleDemo { publi 阅读全文
posted @ 2020-10-21 15:36 leochan007 阅读(166) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <chrono> #include <ctime> #include <iomanip> #include <sstream> int main() { // 获取当前时间点 auto now = std::chrono::system_cl 阅读全文
posted @ 2025-01-23 16:36 leochan007 阅读(2) 评论(0) 推荐(0) 编辑
摘要: #define STRINGIFY(x) #x int someVariable = 10; std::cout << STRINGIFY(someVariable) << " = " << someVariable << std::endl; 阅读全文
posted @ 2024-12-27 11:37 leochan007 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <sstream> #include <iomanip> #include <ctime> bool compareTimeStrings(const std::string& timeStr1, const std::string& tim 阅读全文
posted @ 2024-12-24 15:47 leochan007 阅读(8) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> void print_binary(unsigned int n) { for (int i = sizeof(n) * 8 - 1; i >= 0; i--) { printf("%d", (n >> i) & 1); } printf("\n"); } vo 阅读全文
posted @ 2024-12-12 17:51 leochan007 阅读(3) 评论(0) 推荐(0) 编辑
摘要: // 获取某个进程ID DWORD GetTaskManagerProcessId() { DWORD taskManagerProcessId = 0; PROCESSENTRY32 pe32; pe32.dwSize = sizeof(PROCESSENTRY32); HANDLE hProce 阅读全文
posted @ 2024-03-20 17:48 leochan007 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Computed properties are unique data types that will reactively update only when the source data used within the property is updated. By defining a dat 阅读全文
posted @ 2024-02-18 08:57 leochan007 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 一、解决方案 1、错误原因 “地址 localhost:1099 已在使用中“,是1099程序被占用,把1099程序后台停止掉即可。 2、解决方案 1、快捷键win+R打开CMD运行 netstat -aon | find "1099" 2、运行代码,找到程序 tasklist | find "56 阅读全文
posted @ 2024-01-28 11:24 leochan007 阅读(24) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <fstream> int main() { std::ifstream sourceFile("source.txt", std::ios::binary); // 打开源文件 if (!sourceFile) { std::cout << 阅读全文
posted @ 2024-01-03 12:31 leochan007 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 新手VSCode配置C++20 Makefile教程1 快速入门 HTTP 代理服务器的设计与实现(C++) 阅读全文
posted @ 2023-12-05 11:49 leochan007 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Python处理日期方法大全、三十种方法 Python中的13个搔操作 快速定位手机号码归属地,数据源下载即刻开启! 阅读全文
posted @ 2023-11-17 09:03 leochan007 阅读(7) 评论(0) 推荐(0) 编辑