• home


  • 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


    User-contributed articles, organized into different categories.
    You can contribute your own articles!
    Browse Articles

    Latest forum activity:

    how do i implement a for loop in a math interpreter   [Beginners]
    how do I implement loops in a math interpreter? it gets the tokens but discards them after reading them but I want to implement for loops and such, like > Σ(n=...
    [4 replies] Last: @seeplus i convert the expression using shunting-yard (by codinglexernewbie)
    search for words in a file   [Beginners]
    Hi, I have a program I'm currently working on where I'm trying to read a particular city from a file. Here is the content of the file below: Oakland : Lake ...
    [no replies]
    JSON C++   [Beginners]
    Using Visual C++ 2022 community edition to compile following JSON C++ program from book C++20 for Programmers by Deitel & Deitel, Published in 2022, chapter 9 p...
    [no replies]
    What is an "exposition-only alias template"?   [General C++ Programming]
    For instance at https://en.cppreference.com/w/cpp/iterator/forward_iterator: Definition of this concept is specified via an exposition-only alias template...
    [2 replies] Last: well thanks (by JUANDENT)
    About Base class call subclass function   [General C++ Programming]
    like this code #include <iostream> class A{ public: A(){show();} virtual void show(){std::cout<<"A::Show()"<<std::endl;} void test(){show();} }; class ...
    [13 replies] Last: Although this is OK, the inheritance relationship is wrong. B must inh... (by KaiTang)
    by Geckoo
    Random numbers (1,2,3)   [Windows Programming]
    Hello. I have no questions today, but I need some explanation about this method so as to generate a random number. I made a little test using this code - an alt...
    [52 replies] Last: Good coffee is just wasted on this Pleb and villein. (by George P)
    Cannot read data from file   [UNIX/Linux Programming]
    Hello, I have developed an application that needs to read some data from file, but it seems to not work, here is my code: //this file exists, so no pr...
    [2 replies] Last: Thanks for responding, I made a mistake, when the image that i look f... (by Mamo Grag)
    Why const int instead of just int   [Beginners]
    const int func(void) { return 3; }[/code] In code above, what is the need of const int as returned type instead of just int? Can you site a specifi...
    [5 replies] Last: A series about using const, starting with const local variables. https... (by George P)
    creation of simple tree like structure using stl vector c++, need help : )   [General C++ Programming]
    i would like to create a tree like structure in c++. since the number of children per node is arbitrary i would like to use stl vector for tree creation. ...
    [7 replies] Last: N children tree may not always be a search tool, it can be organizatio... (by jonnin)
    Question 5 about optimization   [Beginners]
    Probably the last optimization question and it is about initialization Part I Consider the two snippet below: int main() { int nbr; }[/code] [code]int m...
    [5 replies] Last: Herb Sutter is someone who I listen to when he mentions something C++:... (by George P)