• home

Tutorials

  • 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

    Articles

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

    Latest forum activity:

    by Cplusc
    Inconsistent Results with Different Methods   [General C++ Programming]
     
    I’m facing an issue in a C++ project where two different methods for computing the same values are giving inconsistent results, despite both using the same inpu...
    [7 replies] Last: Hi, Some suggestions: What warning levels do you have when compiling... (by TheIdeasMan)
    by helios
    About full-duplex sockets   [General C++ Programming]
     
    Sockets are supposed to be full-duplex, right? So the endpoints should be able to send and receive literally at the same time. But how do you handle that at the...
    [no replies]
    Daily bit(e) of C++ | Optimizing code to run 87x faster   [Lounge]
     
    https://simontoth.substack.com/p/daily-bite-of-c-optimizing-code-to
    [11 replies] Last: Ah, I misread. IDK. Good question. (by Duthomhas)
    C++ Questions (1,2,3,...,10,11,12,13)   [Beginners]
     
    1) Why does "&myChar " act differently in 2 different contexts? [code] char* pointer = &myChar[0]; //ALSO WORKS!!! [/code] Above, it actually return th...
    [245 replies] Last: The other thing I wanted to say about AI is that for us Ordinary Cats ... (by TheIdeasMan)
    by helios
    Bad Apple!!   [Lounge]
     
    I made a thing. https://www.youtube.com/watch?v=rt5VUOLRues https://github.com/Helios-vmg/spindafy Check out the video I linked in the description or it won'...
    [7 replies] Last: I'm thinking a good strategy is to get a histogram of the selected pat... (by helios)
    Understand internals of std::expected   [Lounge]
     
    https://www.cppstories.com/2024/expected-cpp23-internals/
    [no replies]
    How to use a library of C++ 20 modules from another solution file?   [Windows Programming]
     
    Hi, I have a library of C++ 20 modules which I can use from projects in the same solution but not from projects in another solution. I have instructed the l...
    [3 replies] Last: that may work, but no, I mean pure windows folder management. You sho... (by jonnin)
    Made the mistake of trying to help out at SO again.   [Lounge]
     
    I guess I’ll never learn. https://stackoverflow.com/questions/78396197/is-there-a-cleaner-way-to-write-this-c-code Closed as “opinion-based”. [sup...
    [4 replies] Last: Then we can pull it all together in: main.c[/code][code] #include <... (by Duthomhas)
    UB in STL   [Lounge]
     
    It bugs me that parts of the Ranges library allows UB, or doesn't have bounds checking. Given the recent criticism of C++ being an "unsafe language", I wonder w...
    [15 replies] Last: @Peter87 Thanks for your great post :+) I don't think I have ever us... (by TheIdeasMan)
    I just cannot understand this driving behavior...   [Lounge]
     
    People where I live (NJ) are weird, but I’ve had this happen in places like NM too. Today I was coming home in my big ol’ pickup truck, and the neighborhood st...
    [9 replies] Last: The other driver then came to a full and complete stop also. And just... (by George P)