每日C++(26年):2月2日 – 2月8日
2月2日:future:std::shared_future::wait2月3日:future:std::shared_future::wait_for2月4日:future:std::shared_future::wait_until2月5日:future:std::async2月6日:future:std::lau...
每日C++(26年):3月合集
3月1日:atomic:std::atomic_flag_test_and_set和std::atomic_flag_test_and_set_explicit3月2日:atomic:std::atomic_flag_clear和std::atomic_flag_clear_explicit3月3日:atomic:std::ato...
C++实现socket编程(Windows、Linux)
基本概念C++ Socket 编程是实现网络通信的一种方式,利用 Socket 接口,程序可以通过计算机网络进行数据的传输与接收。Socket 是一种用于实现通信的抽象概念,它可看作是连接网络中两个通信端点...
Windows:VSCode安装与配置C/C++环境
VSCode安装:先在官网下载VSCode,如果官网下载很慢,你可以点击下方链接:安装时的安装路径尽可能不要的存在中文,其余没有什么需要注意的配置C/C++环境:首先你需要配置C/C++环境,你可以参考...
每日C++(25年):12月1日 – 12月7日
12月1日:mutex:std::recursive_mutex::try_lock12月2日:mutex:std::recursive_mutex::unlock12月3日:mutex:std::recursive_timed_mutex::lock12月4日:mutex:std::recursive_timed_mutex...
每日C++(26年):2月16日 – 2月22日
2月16日:atomic:std::atomic_thread_fence2月17日:atomic:std::atomic_signal_fence2月18日:atomic:std::atomic_exchange和std::atomic_exchange_explicit2月19日:atomic:std::atomic_f...
每日C++(26年):5月11日 – 5月17日
5月11日:vector:std::vector::push_back5月12日:vector:std::vector::emplace_back5月13日:vector:std::vector::append_range5月14日:vector:std::vector::pop_back5月15日:vector:st...
WindowsAPI-控件:Static
使用WindowsAPI,创建一个static控件:#include <windows.h> #include <CommCtrl.h> #pragma comment(lib, 'comctl32.lib') // 窗口过程函数 LRESULT CALLBACK WindowProc(HWND hwn...
vcpkg: Win11环境包管理工具配置教程
安装:1. 先打开任意一个空文件夹(假设文件夹路径为: c:\src),先将vcpkg克隆到本地:git clone https://github.com/microsoft/vcpkg如果您无法克隆到本地,您可以直接下载文件并解压到空文...
每日C++(25年):8月11日 – 8月17日
8月11日:cmath:std::tgamma8月12日:cmath:std::cbrt8月13日:cmath:std::nearbyint8月14日:cmath:std::log1p8月15日:cmath:std::sin8月16日:cmath:std::log28月17日:cmath:std::le...
每日C++(26年):6月1日 – 6月7日
6月1日:deque:std::deque::erase6月2日:deque:std::deque::push_back6月3日:deque:std::deque::emplace_back6月4日:deque:std::deque::pop_back6月5日:deque:std::deque::push_front6...
WindowsAPI-控件:ProgressBar
使用WindowsAPI,创建ProgressBar控件:#include <windows.h> #include <commctrl.h> #define TIMER_ID 1 #pragma comment(lib, 'comctl32.lib') HWND hwndProgressBar; int c = 0;...













