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

    Chrono date literals   [General C++ Programming]
     
    Since C++20 there has been the d and y literals defined in <chrono> - but no m. This seems to be able to be added by (for VS - based upon the code for d and ...
    [3 replies] Last: OK. So why not say mo for consistency? inline namespace literals { ... (by seeplus)
    How can I find the maximium number of decimal digits representable in a double?   [General C++ Programming]
     
    What is the maximum precision of double? numeric_limits<double>::????? default precision is 6 digits after the period
    [3 replies] Last: https://en.cppreference.com/w/cpp/types/numeric_limits/digits10 (by Peter87)
    by Cplusc
    generate mesh inside .STL file   [General C++ Programming]
     
    I have some STL files (usually aneurysm) and I'm using Lattice Boltzmann Method for my simulation and I need to construct the mesh. As far as LBM uses cubic mes...
    [17 replies] Last: For generating the mesh inside a complex geometry having the stl file,... (by Cplusc)
    by Cplusc
    Building project from github   [General C++ Programming]
     
    I'm trying to build this project https://github.com/hemelb-codes/hemelb. This project has several dependencies. I have several of them installed in my system ...
    [no replies]
    by ruzip
    fmemopen for Windows?   [Windows Programming]
     
    Is there any library that can treat memory as file stream like fmemopen[/b] on Windows? and how to use it like you are opening a file stream?
    [4 replies] Last: Thanks for the suggestions. (by ruzip)
    by ruzip
    Printing International Fonts w/o changing console fonts   [Windows Programming]
     
    This one works, but is changing the whole console font and size. Is there a windows way similar to how Linux does it w/o any font change? #include <...
    [no replies]
    output will show only the end.   [General C++ Programming]
     
    Hello everybody. I really thank you for helping me to go back to programming in C++. You know I am now 73 years old. They told me I have to stay busy to sta...
    [6 replies] Last: What exactly do you want to know? Let's say your terminal/cmd has 100 ... (by Ganado)
    by PeteDD
    Please critique... vector of structures with std::function and virtual class methods.   [General C++ Programming]
     
    Two parts... First the explanation then, in the "reply", my attempt at a solution. I would greatly appreciate critique on the code I came up with. I am conti...
    [1 reply] : Here is an attempt... using a structure which includes functions using... (by PeteDD)
    Boost logging library   [General C++ Programming]
     
    may i please inquire re/ Boost logging library . a cursory reading of the manual indicates it merely stores strings of the programmer's choosing . i wish to uti...
    [2 replies] Last: This is one kind of workflow where you might want to record inputs to ... (by salem c)
    Packaging your project   [UNIX/Linux Programming]
     
    I'm using Makefile (Make) to package my SDL2 project. I'm also using SDL_GetPrefPath to locate and store/install my project's data, plugins, fonts, and other re...
    [8 replies] Last: [quote kbw]SDL_GetPrefPath does not provide a place to install your ap... (by newbieg)