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

    Random Story Time (1,2)   [Lounge]
     
    I once went to McDonalds, waaay back when $5 was expensive, and bought food that totaled something like $6.85. I gave the cashier a five, two ones, and a dim...
    May 14, 2025 at 11:28am
    [25 replies] Last: Future story coming. Just don’t want the topic to close yet. (by Duthomhas)
    Cylic inclusion and forward declaration and template issue.   [General C++ Programming]
     
    Hi, I've two classes (Server and Network) which have a template function defined in the .h file because we must define template function to header files. The p...
    May 13, 2025 at 1:34pm
    [2 replies] Last: Ok I've solved the issue thanks. (by Laurent7601)
    C++ developments   [Lounge]
     
    This article may be of interest: https://www.itprotoday.com/c-programming-language/c-in-2025-how-the-language-is-adapting-to-a-shifting-tech-landscape
    May 12, 2025 at 4:23am
    [8 replies] Last: The std::variant was ruined by committee. Use boost::variant instead. ... (by Duthomhas)
    How to init this static var   [General C++ Programming]
     
    Hi! I've a template class Application which have a static var. (a pointer to the application instance) I declare it like this : static Application<A, T>* app...
    May 11, 2025 at 8:41am
    [2 replies] Last: Templates need to be defined in the header file (unless you add explic... (by Peter87)
    destructors are not called in the right order (1,2)   [Windows Programming]
     
    Hi! I've a bug with mingw, I've downloaded the msvcrt runtime mingw-w64 12.0 on this website (the lasted doesn't work for me, DllMain entry point missing...) : ...
    May 11, 2025 at 8:01am
    [20 replies] Last: In other words, each component ended up storing its own copy of the de... (by Peter87)
    compile error when building shared libs   [Windows Programming]
     
    I I'm trying to compile my lib on shared but I get this error message that I don't understand : [ 37%] Linking CXX shared library ..\..\..\lib\libodfaeg-gra...
    May 10, 2025 at 8:43pm
    [2 replies] Last: C and C++ use different name mangling. (by kigar64551)
    discussion on std::ranges::iterator_t<T> being distinct from T::iterator (and same for begin)   [General C++ Programming]
     
    I recently spent an hour or so on a bug that came down to std::ranges::const_iterator_t<T> sometimes being different from T::const_iterator. For example: === s...
    May 8, 2025 at 10:40am
    [4 replies] Last: [quote=Xaxazak]I recently spent an hour or so on a bug that came down ... (by TheIdeasMan)
    by zapshe
    Complacency (1,2,3)   [Lounge]
     
    We're here at the last chance for him to turn back. We all know defying their decision, especially being 9-0, is the hill he wants to die on. He's installed his...
    May 6, 2025 at 9:49pm
    [43 replies] Last: About all we have accomplished is that I dislike all politicians even... (by zapshe)
    by Ganado
    Safer way to maintain struct initializations   [General C++ Programming]
     
    I ran into this problem a bit ago, and was wondering what future-proofing refactor people would suggest. Let's say I have a struct that just contains some simp...
    May 5, 2025 at 10:04pm
    [5 replies] Last: Maybe you want to take a look at the "pimpl" (pointer to implementati... (by kigar64551)
    PNG File Reader (1,2)   [General C++ Programming]
     
    I have been on a quest to write some kind of PNG file reader, mostly just for myself, and I was wondering if there is any good resources on how to do binary fil...
    May 3, 2025 at 2:59pm
    [38 replies] Last: Hmm... learning something new. According to cppreference.com it is on... (by Duthomhas)