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

    Why does move not erase the source?   [General C++ Programming]
     
    Hi, I have this code: vector<string> coll1 = { "Hello", "this", "is", "an", "example" }; list<string> coll2; move(coll1.begin(), coll1.end(), back_...
    [9 replies] Last: thank you all!! (by JUANDENT)
    size_t implicit conversion   [Beginners]
     
    Greetings! I have a loop that doesn't want to break when it should. for (int i = Xdata.size() - 1; i >= Xdata.size()-B; --i){ // loop body ...
    [6 replies] Last: [code]for (int i = Xdata.size() - 1; i >= Xdata.size()-B; --i){ ... (by keskiverto)
    1D FFTs of an Eigen tensor   [General C++ Programming]
     
    So I am trying to take an FFT along a specific direction of an Eigen tensor, similarly to my code in MATLAB. In MATLAB: Nx = 8; Ny = 6; Nz= 8; Lx =6; Ly =...
    [10 replies] Last: I was trying to take the 1D FFT along each direction separately to un... (by JamieAl)
    operator const char* return (1,2)   [Beginners]
     
    Hi y'all i was wondering if i can have something like this on one line? return (ss.str().c_str()); or return ((ss.str()).c_str()); operator co...
    [35 replies] Last: I use MSVC and LLVM/Clang as my primary toolsets, and I avoid going in... (by Duthomhas)
    Finally switched to Linux Mint (1,2)   [Lounge]
     
    Got a new PC (finally) and since it is really nice, modern hardware I am finally making the move from Windows. I liked[/i] Windows 7. Very clean, good OS. Wi...
    [31 replies] Last: I do find it odd that PS1 is defined in isolation in the history conf... (by keskiverto)
    Cools stuff I’m not gonna use   [Lounge]
     
    Heh, wanted to just do a simple string match — nothing fancy even, just has to test for an exact match in a small set of strings... There’re all kinds of way...
    [3 replies] Last: So, I’m looking over my old code and tweaking it to put up for all the... (by Duthomhas)
    ASM code and C++   [Beginners]
     
    Hallo, cplusplus. i am trying to get a bios interrupt call to the bios in c++. but compiling it i get a error.. kernel.c:27:9: warning: implicit declar...
    [3 replies] Last: OP is clearly not messing with programming on modern systems. Hints: ... (by Duthomhas)
    Guidelines are not rules   [Lounge]
     
    See: https://arne-mertz.de/2024/03/core-guidelines-are-not-rules/
    [5 replies] Last: Meh, the STL isn’t[/i] the Standard Library. And that’s a 13-year old... (by Duthomhas)
    Program testing works... when you’ve enabled it...   [Lounge]
     
    Spent two hours trying to figure out why my X11 window wasn’t getting keyboard focus and input. It was. ...I had just turned off all my debugging output to...
    [2 replies] Last: Heh, I told Windows to take a hike. I’m very happily running Linux Mi... (by Duthomhas)
    C++23 Formatting Ranges   [General C++ Programming]
     
    C++23 added the ability to "print out" using formatting options a container directly instead of having to use some form of a loop to access each element individ...
    [5 replies] Last: I would recommend two books, one on C++20 and the other on C++23, by t... (by George P)