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

    Winsock2: How to unblock from a blocking 'connect' call?   [Windows Programming]
     
    I'm developing a C++ app that uses a company "Socket" library (call it XSocket). XSocket uses Winsock2 underneath the hood and the API only allows use of a bloc...
    [2 replies] Last: I've been googling around a bit and have come to the same conclusion -... (by ElusiveTau)
    by L67GS
    Return RMS volume of an mp3?   [UNIX/Linux Programming]
     
    I've been looking for this for 2 days, and found a few command line tools to retrieve the level of an mp3, but nothing I can easily return a value from. I'm sta...
    [4 replies] Last: Just to follow up, this ended ugly but it's being used infrequently an... (by L67GS)
    He’s dead, jim. (1,2)   [Lounge]
     
    [sup]So very sad. I really enjoyed this forum.[/sup][/sub]
    [23 replies] Last: There is a place for sure. That isn't the issue. This one won't let ... (by jonnin)
    Increasing Size of Vector (1,2)   [General C++ Programming]
     
    HI, I need to increase the size of my vector. However the program crashes. How do I increase the size and prevent it from crashing. Below is the vector in ques...
    [29 replies] Last: 2) "make them static or move their definition to be before main()." [... (by seeplus)
    by Ganado
    Pretend my unique_ptr is a reference?   [Beginners]
     
    I have code that looks like this: std::unique_ptr<Foobar> pFoobar = FoobarFactory(); Foobar& foobar = *pFoobar; // fix'd! foobar.Adjuvant(); foobar.Acutance()...
    [4 replies] Last: LOL, this made my day. Bless you little LisaBot. (by Duthomhas)
    by Ganado
    vscode adds UTF-16 BOM to stdout [Windows]   [Lounge]
     
    Posting in lounge since this isn't directly a C++ issue. Google and GPT-whatever have failed me. In Visual Studio Code, I am attempting to run the .exe I just ...
    [3 replies] Last: Try the above with and without the _setmode() command, and you'll kno... (by Ganado)
    by Ganado
    Access specifiers in nested class   [Beginners]
     
    This is probably a really basic question, but I'm confused by why this code compiles class Foo { public: Foo() : value(100) { } private: class...
    [2 replies] Last: Thanks Peter. (by Ganado)
    by hmoein
    A light and agile thread pool for the masses   [General C++ Programming]
     
    https://github.com/hosseinmoein/Leopard
    [no replies]
    Converting Hex into dec using numeric up down control   [Windows Programming]
     
    Hi, I am trying to write a number to a file in both hex and in decimal. For example Hex 63 and dec 99. In a hex editor the values should be 63 and 99. The g...
    [4 replies] Last: BCD is just a lookup table. you look up each digit of the number in b... (by jonnin)
    Sorting a listbox   [Windows Programming]
     
    Hi, I want to sort a list box values. Using the sort property. It sort of works but has some bugs. for example this is how it is displayed. Not in order....
    [2 replies] Last: I did a work around... I would really like to figure this out on my o... (by Cyclone)