vcpkg: Win11环境包管理工具配置教程
安装:1. 先打开任意一个空文件夹(假设文件夹路径为: c:\src),先将vcpkg克隆到本地:git clone https://github.com/microsoft/vcpkg如果您无法克隆到本地,您可以直接下载文件并解压到空文...
WindowsAPI-控件:ProgressBar
使用WindowsAPI,创建ProgressBar控件:#include <windows.h> #include <commctrl.h> #define TIMER_ID 1 #pragma comment(lib, 'comctl32.lib') HWND hwndProgressBar; int c = 0;...
WindowsAPI-控件:RichEdit
使用WindowsAPI,创建RichEdit:#include <windows.h> #include <commctrl.h> #include <richedit.h> #pragma comment(lib, 'comctl32.lib') //#pragma comment(lib, 'Msftedi...
WindowsAPI-控件:TrackBar
使用WindowsAPI,创建TrackBar控件:#include <windows.h> #include <commctrl.h> #include <stdio.h> #pragma comment(lib, 'comctl32.lib') #define ID_TRACKBAR 101 #defi...
每日C++(25年):7月7日 – 7月13日
7月7日:string:std::string::contains7月8日:string:std::string::swap7月9日:string:std::string::reserve7月10日:string:std::string::resize7月11日:string:std::string::shrink_t...
WindowsAPI-控件:Hotkey
使用WindowsAPI,创建Hotkey控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #pragma comment(linker,'\'/manifestdependency:type='win3...
每日C++(25年):6月30日 – 7月6日
6月30日:C++14:std::make_heap7月1日:C++14:std::search7月2日:string: std::basic_string::find_first_not_of7月3日:string:std::string::find_first_of7月4日:string: std::string::c...
C++实现socket编程(Windows、Linux)
基本概念C++ Socket 编程是实现网络通信的一种方式,利用 Socket 接口,程序可以通过计算机网络进行数据的传输与接收。Socket 是一种用于实现通信的抽象概念,它可看作是连接网络中两个通信端点...
WindowsAPI-控件:SysDateTimePick32
使用WindowsAPI,创建SysDateTimePick32控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #define ID_DATETIMEPICK 101 LRESULT CALLBACK ...
WindowsAPI-控件:ToolBar
使用WindowsAPI,创建ToolBar控件:#include <windows.h> #include <commctrl.h> #pragma comment(lib, 'comctl32.lib') #define ID_TOOLBAR 201 LRESULT CALLBACK WindowProc(HWND...
每日C++(25年):6月16日 – 6月22日
6月16日:C++17: std::shuffle6月17日:C++17:std::partial_sort6月18日:C++11: std::is_heap6月19日:C++17:std::inplace_merge6月20日:C++14: std::remove_if6月21日:C++17: std::trans...
C++ 中四种字符串字面量的区别
在 C++ 编程中,字符串表示是非常重要的一部分。开发者可以使用多种方式来定义和操作字符串,每种方式都有其特定的语义与应用。本文将详细探讨四种不同的字符串表示:L'string'、'string'、TEXT...