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

    libcrypto conflict v1.1 VS v3   [UNIX/Linux Programming]
     
    Hello dear forum experts! :) Check this issue please -> I received a compilation warning: /usr/bin/ld: warning: [b]libcrypto.so.1.1[/b], needed by /usr/l...
    [no replies]
    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...
    [39 replies] Last: If I were to start using command-line compilation I would probably go ... (by George P)
    by Cplusc
    C1090 error   [General C++ Programming]
     
    I am getting the following annoying and frustrating error which appeared suddenly out of nowhere. the code was working just fine and I don't know what happened....
    [5 replies] Last: You might have problems with your MPI (or whatever it is called) libra... (by George P)
    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...
    [33 replies] Last: Hi There are lots of keyboard shortcuts enabled by default as well. F... (by TheIdeasMan)
    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)
    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)