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

    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...
    [no replies]
    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)
    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);...
    [1 reply] : Not correct. The line auto cc = std::make_shared<Customer>(customer... (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)
    How to create bare-minimum Windows Application with Console Access?   [Windows Programming]
     
    I'm following this video tutorial and would like to run the code snippet at 1:07. [code] #define WIN32_LEAN_AND_MEAN #include <iostream> #include <strin...
    [7 replies] Last: You can call AllocConsole()[/code] to get a console in a Windows (GUI... (by kigar64551)