• 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 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 2, 2025 at 5:22am
    [2 replies] Last: C++20 to the rescue. https://en.cppreference.com/w/cpp/language/aggre... (by salem c)
    mingw gdiplus rendering scales wrong   [Windows Programming]
     
    I'm trying to convert GDI32 program to GDI+ ... I'm using MinGW toolchain (TDM V10.3.0) on Windows 10. I am trying to implement an ImageList capability in ...
    May 2, 2025 at 12:42am
    [1 reply] : Okay, I finally figured out how to disable "automatic scaling", once I... (by Gorlash)
    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 1, 2025 at 10:11pm
    [40 replies] Last: Forgive my slowness[/quote] No worries, take your time. [quote]The b... (by zapshe)
    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 1, 2025 at 9:29pm
    [34 replies] Last: Sorry. Didn’t mean to do that. The argv[/code] array is guaranteed t... (by Duthomhas)
    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 1, 2025 at 12:44pm
    [2 replies] Last: Sorry, I'm not sure what you're saying, precisely. I agree they curren... (by Xaxazak)
    by kitfox
    How to create white noise random hashing function?   [General C++ Programming]
     
    I'm trying to figure out how to build a random hashing function that emphasizes speed and repeatability. Basically, for input it will have an unsigned int seed...
    Apr 28, 2025 at 8:21am
    [1 reply] : I think you can use any proper hash function[/b] to produce a (pseudo... (by kigar64551)
    More unpopular opinions   [Lounge]
     
    Continuing from https://cplusplus.com/forum/lounge/285914/ If you are in a school zone, either early in the morning when students are being dropped off or ...
    Apr 24, 2025 at 6:38am
    [12 replies] Last: What do you think of the Pattinson Batmans?[/quote] The movie itself ... (by zapshe)
    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...
    Apr 23, 2025 at 3:17am
    [24 replies] Last: > Montana Fish, Wildlife & Parks Bear Identification Course[/b] The m... (by Ganado)
    make: /usr/bin//-g++: No such file or directory   [UNIX/Linux Programming]
     
    Hi I got a vs code environment on my host (ubuntu 22.04), and i want to cross-compile an application for imx8mp board. It worked pretty good intil i insta...
    Apr 21, 2025 at 9:59pm
    [3 replies] Last: Notice here: [b]/usr/bin//-g++[/b] it interpret somehow that the comp... (by kigar64551)
    by chipp
    what happened to this forum?????   [Lounge]
     
    it seems like it became veeeery quiet in here[/b] [b]what happened?????[/b] are we have another new forum or something...?
    Apr 15, 2025 at 7:19am
    [6 replies] Last: apart from these, this forum is on a blacklist at most active c++ site... (by jonnin)