• 全部
  • nginx
  • Algorithm4
  • UE2
  • stc511
  • STM321
  • Embedded 2
  • ue51
  • STL9
  • 环境8
  • 网络3
  • boost2
  • cmake8
  • c++24
  • Qt6
  • STL c++

    [STL]std::partical_sum

    from<numeric> https://en.cppreference.com/w/cpp/algorithm/partial_sum 计算前缀和很方便的函数 code: std::vector<long long > v(10, 2); // v = {2, 2, 2, 2, 2, 2

  • STL c++

    [STL]std::istream_iterator vs std::istreambuf_iterator

    IOstreams use streambufs to as their source / target of input / output. Effectively, the streambuf-family does all the work regarding IO and the IOstr

  • Algorithm

    一些小优化

    #include <iostream> #include <queue> #include <cmath> #include <cstring> #include <array> #include <sstream> #include <vector> int main() { const

  • STL

    [STL碎片]std::bitset

    intro: 在Utilities library下,头文件<bitset>内; The class template bitset represents a fixed-size sequence of N bits. Bitsets can be manipulated by standard

  • STL Algorithm

    iterators

    原文 分类 Instead of being defined by specific types, each category of iterator is defined by the operations that can be performed on it.

  • boost

    boost.asio tutorial-Basic skills

    Basic skills Timer.1 - Using a timer synchronously 执行阻塞 All programs that use asio need to have at least one I/O execution context, such as an io_cont

  • c++

    winsocket-server

    前置只是参考winsocket-cli 创建 WSADATA wsaData; int iResult; //initialize Winsock iResult= WSAStartup(MAKEWORD(2,2),&wsaData); if(iResult!

  • c++

    windows socket-client

    microsoft Documents 初始环境:cmake stl23 环境配置: add_library(WS2 SHARED IMPORTED) set_target_properties(WS2 PROPERTIES IMPORTED_IMPLIB "C:\\Windows\

  • Qt

    Qt核心概念-Object Trees & Ownership

    简述: 所有继承自QObject的类都被对象树管理,自动释放内存; 实现: 重写QObject构造函数 #ifndef QTEST10_A_H #define QTEST10_A_H #include "QObject" #include <iostream> class A :public QOb

  • c++

    前置class声明

    简述: 在A类要使用B类对象时,一般会在A.h中添加B.h的头文件,当一个项目中东西太多时,会减慢编译速度,我们还有另一种实现方法,就是在A类头文件中声明b类,再在A.cpp中包含B.h 实现: A.h中: class B; B *b; 在A.cpp: #include "B.h" 总结: 避免了相

avatar

单调有界必有极限

  • 37

    文章

  • 18

    分类

  • 1085

    访问量

  • 2024-05-29

    建站天数

avatar

单调有界必有极限

  • 37

    文章

  • 18

    分类

  • 1085

    访问量

  • 首页
  • boost
  • Qt
  • c++
  • Concurrency
  • About
请您轻一点,我是很昂贵的机器人哦! O.O