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

    Making a shared_ptr out of a stack object corrupts the heap!!   [General C++ Programming]
     
    Hi, The following code is incorrect: Customer customer = { 0, "John Doe", "johndoe@example.com" }; auto cc = std::make_shared<Customer>(customer);...
    [2 replies] Last: Note: std::make_shared<T>()[/code] creates a new heap-allocated insta... (by kigar64551)
    C++23   [Lounge]
     
    C++23 has finally been accepted by ISO as the latest C++ standard ISO/IEC 14882:2024 For a useful summary of features see https://www.cppstories.com/2024/cp...
    [3 replies] Last: Note that something like for (auto& elem : getVector())[/code]has al... (by Peter87)
    Testing restart functionality in C/C++   [General C++ Programming]
     
    Hello! I am trying to implement "restart" functionality in my code, where if for some reason the code stops (i.e. iterations drop) I can pick up from where I s...
    [1 reply] : you will get more help if you put it in a repo where we can see the co... (by jonnin)
    by helios
    Unpopular opinions (1,2)   [Lounge]
     
    The plural of "layoff" is "layoves". Every non-pressurized drink should come in a bag, as it's a much more efficient packaging (assuming it must be disposabl...
    [25 replies] Last: Oh, interesting. I should have at least looked up the Wiktionary defin... (by Ganado)
    by Dazzer
    How to start with audio plugin GUI design?   [Beginners]
     
    Hi folks, I'm interested in learning C++ for audio plugin design, but I'm a bit unusual in that i'm not really interested in the audio DSP part, i'm only rea...
    [1 reply] : we used to call it RAD (rapid application development) and I am not su... (by jonnin)
    Another one bites the dust   [Lounge]
     
    Codeproject has joined those other great sites that have gone to the cloud. It's ceased to host new content and displaying existing content is limited to the fi...
    [no replies]
    How to get program to distribute input by alternating between two, multi-line string inputs   [Beginners]
     
    Hello I need to get this output: 1) type a: 1a type b: 1b 2) type a: 2a type b: 2b 3) type a: 3a type b: 3b 4) type a: 4a ty...
    [5 replies] Last: You can do it with just 1 loop to read the data. Consider: #include... (by seeplus)
    New Safe C++ Proposal (1,2,3,4,5,6)   [Lounge]
     
    There is now a Safe C++ proposal that extends C++ by defining a superset of the language that can be used to write code with strong safety guarantees. See: htt...
    [103 replies] Last: Sure, why not?[/quote] Because we can both agree up to a certain poin... (by zapshe)
    Need a data structure where I can map a string to a type   [General C++ Programming]
     
    Hi, Need a certain compile time map m like this: using Type = typename m["Customer"]::type; // Type would be Customer [/code] How can i do this? ...
    [10 replies] Last: It's not necessary to use an enum. It was just a suggestion. (by Peter87)
    Save to file with vector (dynamically)   [General C++ Programming]
     
    I have created a programme that does calculations and generates results from those calculations. The imformation generated is stored in variables for later d...
    [11 replies] Last: i outside the loop is not a c++ error. It is a questionable programmi... (by jonnin)