• 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:

    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)
    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...
    [244 replies] Last: The increasingly poor quality of search results drives me bonkers, but... (by Duthomhas)
    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...
    [no replies]
    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)
    Mismatch overload problem   [General C++ Programming]
     
    Why does s have the value false? template<typename T> char test_have_range(decltype(&T::begin), decltype(&T::end)); template<typename T> short test_hav...
    [1 reply] : #ifndef DUTHOMHAS_IS_ITERABLE_HPP #define DUTHOMHAS_IS_ITERABLE_HPP ... (by Duthomhas)
    How to set up runtime environment for developing and testing Windows apps?   [Windows Programming]
     
    I would like to learn how to write my own credential provider but I don't want to roll out changes on my personal computer, in case I do something dumb and lo...
    [2 replies] Last: I also recommend using a Virtual Machine (VM), e.g. via Oracle Virtual... (by kigar64551)
    How to test if a type T has a begin<T> defined   [General C++ Programming]
     
    I have a SFINAE context where I have the following: struct have_sort { char c; }; struct have_range { char c[2]; }; struct have_none { char c[3]; }; ...
    [no replies]
    why testing for member pointer determines the template type is a class?   [General C++ Programming]
     
    why does this code determine if the type is a class: template<typename T> class is_class { template<typename C> static char test(int C::*); template<typena...
    [4 replies] Last: Thanks!! (by JUANDENT)
    What windows/gui library? (1,2,3)   [Lounge]
     
    What windows/gui library would you fellas recommend for someone starting out as their first entry? I know some SFML, but I am curious what you would have recomm...
    [49 replies] Last: I never had a complete lockup, but very sluggish and either it taking ... (by SubZeroWins)