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

    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)
    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...
    [24 replies] Last: Sorry, dialectical Midwest that has somehow slipped into my vocabulary... (by Duthomhas)
    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)
    zero dynamic memory allocation   [Beginners]
     
    So today I was reviewing teacher code that lets student input the number of blocks of memory to allocate, but the student can input zero. It seems to allocate t...
    [4 replies] Last: Well it was written by a teacher. I need say no more..... (by seeplus)
    Why its showing wrong ?   [Beginners]
     
    Hi there, I am trying to run a code what school going student can do ! But not sure what kind of mistake I am doing. Take a look the program #include<s...
    [6 replies] Last: Just because you can doesn't mean you should. [/quote] :) [quote]do-... (by seeplus)
    Windows water mark now appears on desktop   [Lounge]
     
    I was messing around with some programs. Not sure what happened but there was now a watermark saying to activate windows. Said go to settings which I did. Then ...
    [1 reply] : Definitely run a full virus scan (Windows Defender will do), but it is... (by Duthomhas)