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

    vector error   [General C++ Programming]
     
    I am trying to solve this in C++. How can I test it? I end up with the below errors while compiling this code. https://www.chegg.com/homework-help/questions-...
    [14 replies] Last: @leo2008, FWIW. my approach was: - DRAW the first example; - think abo... (by lastchance)
    by Manga
    Gone for a while   [Lounge]
     
    I am away for a few weeks and suddenly this site looks completely different. What can I say... I have been working on my own tech blog. Forgive the shameless s...
    [6 replies] Last: Sorry Manga. I did not read your request - and you wrote it a few week... (by Geckoo)
    A behavior of the topics editor   [Lounge]
     
    Hello everyone, I am encountering an issue here, It seems I cannot format my text when I try to post a new topic, if I click the code button for example, I do n...
    [8 replies] Last: I use Adblock Plus with Firefox which is fine - but this still leaves ... (by seeplus)
    Child Class reference parent class   [Beginners]
     
    I am trying to model a car object and I want the car object to have a child engine object but I want the engine object to have a pointer to the car object ...
    [8 replies] Last: It could be used for reverse look-up. Given an Engine, what Car is it ... (by seeplus)
    array of integer problem   [General C++ Programming]
     
    Hi all I am trying to solve this problem in C++. Below is what I am trying to do, but has some logical issues. https://www.chegg.com/homework-help/questio...
    [3 replies] Last: Thanks everyone for your valuable inputs. (by leo2008)
    string issue   [General C++ Programming]
     
    I am trying to solve below issue. For example, given K = "Test" and string J as follows: "Jowal Dawn; Pumkin Prejwh; Roger Kim; Joseph Delar; Ivan Shawn; Jimm...
    [16 replies] Last: 17.1.6 isn't the latest version - 17.3.4 is. Update it! It then compil... (by seeplus)
    Weird output!   [Beginners]
     
    Consider the code below: int nbr = 7; string str = "Hello world"; cout << str << ' : ' << nbr << endl; [/code] I putted the string literal " : " ins...
    [3 replies] Last: In your example, you use simple quotes - and the code works as expecte... (by Geckoo)
    Override Class member array variable values   [Beginners]
     
    When I have an array as a class member variable and I want to override the default values by calling a separate constructor. Is what I am doing the optimal w...
    [8 replies] Last: Got it! Thanks for the clear explanation! (by shaefayejem)
    char8_t (1,2)   [Beginners]
     
    I am currently using the latest version of code blocks 20:03 But I seem not be able to compile this code: char8_t ch; [/code] After couple searches I find...
    [26 replies] Last: VS community 2022 that require windows 10 v.1909[/quote] VS communit... (by seeplus)
    Question about Escape sequences   [Beginners]
     
    Part I ====== std::cout << "Backslash: \\" << std::endl; std::cout << "Double quotes: \"" << std::endl;[/code] I can understand the need of a backslash t...
    [7 replies] Last: That said, for me on Linux this code std::cout << "one\vtwo\fthree"; ... (by seeplus)