• home


  • C++ Language: Learn this versatile and powerful programming language. Includes detailed explanations of pointers, functions, classes and templates, among others...
  • Reference

    Description of the most important classes, functions and objects of the Standard Language Library, with descriptive fully-functional short programs as examples.
    Browse the C++ Reference


    User-contributed articles, organized into different categories.
    You can contribute your own articles!
    Browse Articles

    Latest forum activity:

    by frek
    Passing pointers to function taking iterators   [General C++ Programming]
    Suppose for some reason this code is meant: void accum(std::vector<double>::iterator bg, std::vector<double>::iterator end) { std::cout << std::accumulate(bg,...
    [12 replies] Last: [quote=frek]Why don't you, Peter, as a great coder, go for C++20/23. T... (by Peter87)
    Forum problem   [Lounge]
    Sometimes when I try to access this site I get the error: Internal error #xp20 (xp#20). Trying again after a couple of minutes usually succeeds. Anyone...
    [2 replies] Last: I have been getting that error message quite often recently. Usually i... (by Peter87)
    by Gyiove
    event class and dynamic bind paramaters   [General C++ Programming]
    I have this c++ class here which can register class function into event class and then call them all with 1 function later. Code: template < typename......
    [3 replies] Last: You're making this more complicated than necessary, IMHO. You don't n... (by dhayden)
    by frek
    C++ multithreading deadlock example   [General C++ Programming]
    std::mutex m1, m2; void f_1() { std::unique_lock l1{m1}, l2{m2}; } void f_2() { std::unique_lock l1{m1}, l2{m2}; } [/code]Suppose [i]f_1[/i] starts first an...
    [9 replies] Last: got it, thanks. (by frek)
    Processors and other machines.   [Lounge]
    Hi guys, the title is probably open to interpretation, I couldn't think of a more apt title that was more descriptive and constrained to 4 words, but I digress...
    [7 replies] Last: But I fail to see how a processor that carries out such primitive ope... (by kbw)
    How to disable using vcpkg in a project from the command line?   [Windows Programming]
    what is the command line option to set vcpkg OFF for a certain C++ project? My compiler is VS2022 v17.6.0
    [no replies]
    How to Proxychain properly with WinSocks?   [Windows Programming]
    Hello there, ive been working on a school project to demonstrate the (onion routing like) process of Proxychaining with C++ and WinSocks from Scratch and i ran...
    [3 replies] Last: I'm not an expert on SOCKS5, but what exactly is your problem? Did you... (by kigar64551)
    Interesting minor changes in Visual Studio 2022 V17.6   [Lounge]
    The VS Installer/Launcher has an "Available" tab for quite some time, I have the Community Edition, to show the paid Professional and Enterprise Editions can be...
    [no replies]
    How should I export the API of a shared library?   [General C++ Programming]
    I use Eclipse CDT on a Fedora machine for developing C++ code. In the first project I programmed in C++, I wrote a client for Basex (Open Source XML database). ...
    [7 replies] Last: I've been trying for nearly a week to create submodules for libBasexCp... (by Bengbers)
    Shortcut Icon same as application icon   [General C++ Programming]
    I have a compiled Win32 app that uses a .ico resource file, declared in the .cpp file. My icon displays fine in the application when running. How can I automa...
    [2 replies] Last: I think you can direct the shortcut to the icon, or the file where it ... (by jonnin)