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

    New Safe C++ Proposal   [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...
    [3 replies] Last: sounds like the managed code idea, 3.0[/quote]This doesn't sound like... (by helios)
    _Safe_add checks for overflow but does not do anything to report the problem!   [General C++ Programming]
     
    Looking at VC++ source files I find in ratio the following: what is the purpose of _Safe_add_integer_arithmetic_overflow_error? inline void _Safe...
    [5 replies] Last: Neat example, thanks. (by Ganado)
    Fox-Star Search Fun   [Lounge]
     
    A recent question asked about the A* Search algorithm (https://cplusplus.com/forum/beginner/285875/#msg1243408 [/b]), something I had never messed with, so I de...
    [17 replies] Last: Algorithms was my one weakness when I did my CS degree too many moons ... (by seeplus)
    How to use C++ like modules in Arduino   [Lounge]
     
    Hello everyone, I recently came across this thread on How to use modules in C++[/b] posted on the forum by @[quote]frek[/quote] dated June 7, 2022. Please, ...
    [9 replies] Last: I think current Arduino complier does support standard C++14 and C++1... (by George PlusPlus)
    WinForms Resources, Moved Files   [Windows Programming]
     
    I'm working on a WinForms CLR project and I'm using VS 2022. All was well until I created new folders and moved files - everything was in the base project folde...
    [8 replies] Last: If you use source control[/quote] Not everyone uses that, I know for ... (by George PlusPlus)
    Specifying a file address?   [Beginners]
     
    Hi, I am getting an error when trying to specify a file path for my program. It says "failed to open file for writing". I searched around google but couldn't f...
    [8 replies] Last: seeplus already mentioned about the <format>[/tt] library in C++20, a... (by George PlusPlus)
    FTXUI   [Lounge]
     
    While bumping around in the available vcpkg libraries early this morning I ran across one that looks IMO rather interesting, a terminal UI package: https://g...
    [no replies]
    templates class friends strong types   [General C++ Programming]
     
    Hello all, first a bit of background. Land Surveying involves many types of: Angles, Bearings; Distances; Co-ordinates; and there are many types adjustments ...
    [8 replies] Last: I read Jonathon Boccara's blog[/quote] That article is from 2016, C++... (by George PlusPlus)
    by zzzhhh
    Why const literal class is not a constexpr even if initialized from a constexpr?   [Beginners]
     
    class test{ public: constexpr test(){} constexpr int operator+(const test& rhs) const { return 1+rhs.x ; } int x = 10 ; }; cons...
    [4 replies] Last: Good point. I suppose you could remove x. I'm not sure what the point ... (by DizzyDon)
    printing C++ source file in VS2022 throws garbage   [Windows Programming]
     
    Hi, I have a C++ source file that when printing from VS2022 prints what seems garbage (actually it seems to be using a strange font which is impossible to u...
    [4 replies] Last: any chance one or all of your code snippet settings use the "Cascadia"... (by jonnin)