Report an issue

Uh oh. If you’re visiting this page, you may have found something wrong with the site.

That’s okay. Let us know and we’ll try to fix it!

  • If you found something wrong with a particular tutorial of the site (e.g. a typo or incorrect example), just leave a comment on that tutorial.
  • If you found something wrong with the site in general (e.g. broken functionality, the layout), please leave a comment below.
  • If all else fails, use the contact form in the About/Contact section.

Thanks for helping to make the site better for everyone.

229 comments to Report an issue

  • Marius Williams

    Hello, Alex.

    I think it would be nice if you were to state that this tutorial series does not comprehensively cover the STL.
    I have seen a load of message boards where people express their dissatisfaction with this tutorial series because of it.

    Yours truly, Marius Williams.

    • Alex

      I'll make it clearer. To be clear, the standard library is _huge_ and this tutorial does set you up with everything you need to know to begin exploring the standard library on your own.

  • Dear Teacher,

    Please let me report you that I attempted send you message from municipal Library of Angers, France, but response was
    You do not have permission to access this document.
    Web Server at
    Their ip are,
    With regards and friendship.

  • Xeverous

    Hey! I have read quite a lot from this site (although I learned C++ from older ones) and I have to say that the articles are pretty modern, I'm impressed about additional non-language topics such as debugging and using external libraries. I'm a more experienced programmer (also working as a C++ developer) and would like to submit some topics:
    - Virtual Inheritance
    - type traits and compile-time metafunctions, constexpr
    - CRTP, SFINAE with std::enable_if, SFINAE with std::void_t
    - Variadic Templates (aka the proper way of problem in topic ellipsis-and-why-to-avoid-them)
    - Variable Templates
    - Alias Templates (aka how to template a typedef keyword)
    - Templates of Templates
    - Design Patterns (some with help from boost)
    - Practical guide for Eclipse (all the most important features + using libraries), Eclipse Debugger interface
    - Building libraries with CMake on Linux (GCC) and Windows (TDM-GCC/MinGW)
    - Doxygen introduction and simple tutorial (most is already well explained on it's page)
    - something something Git
    - writing graphical programs with external libraries, for example SFML (it's very simple)

    What do you think of it? How would I send/post articles?
    Please respond.

    • Alex

      I think these are all awesome topics, some of which are on my to-do list. Virtual inheritance is already covered in the tutorials.

      I really appreciate the offer for new articles! But right now I'm only publishing things that I've written myself. In the future I'd love to expand the number of authors but right now I just don't have the time or infrastructure to reasonably do so. :(

  • The word "return" means "give back", so please either remove the word "back" after "return" or change "return" to "give".  Otherwise, you are saying "give back back"!  I am enjoying this tutorial.  Thank you.

  • Dear Teacher, please let me report you that in some municipal libraries in France, when I attempt send you message, response is "forbidden" in big black bold letters. So your site does not accept my message. I point out that it occurs only with your site. Regards.

  • My dear c++ Teacher,
    Please let me report you that at page "1.11a — Debugging your program (watching variables and the call stack)" oldest comment is sent by April 15, 2010 at 11:30 pm, and next one by March 14, 2015 at 7:05 am. It seems many comments are missing.
    With regards and friendship.

  • My dear Teacher,
    Please let me report you that I have sent you a message at "2.4a — Fixed-width integers and the unsigned controversy" and you replied by September 17, but both are not visible at your site.
    With regards and friendship.

  • Madoka

    I love this site and am happy to turn on ads to support it--but the autoplaying ads interrupt my ability to read the text and I can't move them away.

  • AMG

    Reading "8.12 — Static member functions", and video commercial of Stiolto scrolls page up. This commercial causes troubles before.

    • Alex

      Which video gets shown to you is chosen by Google, based on a number of factors. So the videos you see on article 8.12 are different than the ones I see on 8.12.

      I've blocked ads going to, but I don't know if that's the destination for the ad you're seeing. Next time you see the ad, can you advise me on where it goes?

      Thanks, and again, sorry for the inconvenience.

  • AMG

    Hey Alex,
    Seems video commercial scrolls page back to top. While reading the page and slowly scrolling down, suddenly page scrolls up to commercial.

    • Alex

      Which ad block did it scroll to, and where does the ad lead? The ad blocks should not be doing this, but the ad companies (Google and Yahoo) don't do a good job of monitoring the ads they let through so this kind of crap sometimes happens. No wonder people run ad blockers. If I know where the ad goes, I can try to explicitly block it. Sorry for the inconvenience.

  • AMG

    Hey Alex,
    Main page does not open. Thanks.

  • Hello Alex, I had not been able to access the material in Chapter 8.2 (after having done so initially) for 2 days now. I thought it might have been a problem with the browser cache, but after clearing it, I noticed that the issue actually occurs with Chapters 8.0 through 8.8. Other pages in the chapter rendered properly...


    • Alex

      I'm not seeing anything wrong with those chapters myself. Have you tried a different browser? If so, contact me using the contact form and let's take this into email. Thanks!

  • Marius

    Hello, Alex! I appreciate all the work you have put behind this site. It is very clean and organized.

    When I click "in the comments section." under "A couple of notes if you want to run this program yourself:" under the "Uninitialized variables" section in chapter 1 part 3, is it supposed to send me to the comment with the solution?

    If so, it does not work for me. I have tried both Google Chrome and Microsoft Edge without success.

    I see it adds

    to the URL.

    I have posted this here instead of that page because this may be generalized to all of the button's you can click that are supposed to send you to a place on it's page.

    Thank you for any response.

  • FrancescoB

    Hi Alex,

    thanks for this great page which is indeed one of the best CPP tutorials on the web.
    Apparently there is a link chain issue conflicting with the C++14 pages (B.1 vs. B.2).

    The NEXT link found at the bottom of "B.1 — Introduction to C++11" points to

    But it probably should refer to

    which then allows to proceed with the other detail pages:

    Same is true for the INDEX page where B.2 is the appendix for C++14 erroneously.

    Actually those C++11 detail pages are found by searching the web only :)

  • :|

    What is happening? i cant use any tutorial!

  • jenifer

    Hello Alex,
       It will be helpful for me if you cover the topic "union" also.

    • Alex

      It's on my to-do list, but given that unions aren't used very often (I don't think I've ever used one) it's not very high on that list.

  • Mark Scott

    I was looking to program a loop which writes out the decimal numbers from 0 to 255 with their binary and hexadecimal equivalents and came up with the following:

    When I built the application, vc++ 2017 came back with:

    1>------ Build started: Project: ConsoleApplication1, Configuration: Debug Win32 ------
    1>c:\users\marks\documents\visual studio 2017\projects\consoleapplication1\consoleapplication1\consoleapplication1.cpp(12): error C2065: 'number': undeclared identifier
    1>c:\users\marks\documents\visual studio 2017\projects\consoleapplication1\consoleapplication1\consoleapplication1.cpp(13): error C2065: 'number': undeclared identifier
    1>c:\users\marks\documents\visual studio 2017\projects\consoleapplication1\consoleapplication1\consoleapplication1.cpp(15): error C2065: 'number': undeclared identifier
    1>Done building project "ConsoleApplication1.vcxproj" -- FAILED.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    I cannot see what I have done wrong?

    • Cipri

      Line 10: can you see the amazing ';' after the FOR(...) loop and just before the comment "// For loop..."?
      That semicolon ends the FOR statement --- yes, it is possible to have a FOR without a block of statements --- so the variable 'number' is out-the-scope in the next dummy block.

      Unfortunately, the Visual C++ compiler warns only for empty IF statement:
      "...: warning C4390: ';': empty controlled statement found; is this the intent?"
      ==> more here:

  • Keith Huckshold

    I have been struggling with Problem 4 from the Chapter 2 Comprehensive Quiz.
    My code halts at the "std::cout << "Enter the height of the tower in meters: ";" when attempting to get the initial height input.  The error indicated is that "initialHeight = (double) 0".  I have tried skipping the operator input and doing a direct initialization of "initialHeight" but it remains unchanged at 0.  I cut and pasted your code from the Problem Answer and got identical results!
       I am using Version 8.2.1 of Xcode as my development environment.
       Any suggestions?

    • Alex

      It sounds like the program is just waiting for you to input an initial height into the console window so it can continue to execute.

      • Keith Huckshold

        The program does not execute the std::cout command which is the first statement in getInitialHeight.  There is no prompt on the screen.

        The "initialHeight = (double) 0" message is preceded by a box with a capital L in it and the console output shows only (11db).

        • Alex

          I'm not sure what to tell you on this one. I have no idea why you would be getting that message or why the console output would show (11db). It's almost like you're running a different program.

          • Keith Huckshold


            I scraped the project but saved the code.  I started a new Project, inserted the code, with no changes, and it worked.  Apparently I made some unlikely mistake while constructing the first version of the Project that caused it to classify initialHeight as a constant with value 0.  Let's just put this one down as a CND.  Thanks for your help.

  • Vinn


    The tutorial is awesome and very useful.
    I request you to come up with a tutorial on multithreading and IPC programming in C/C++.

    This will prove very helpful for job seekers and freshers.

    Thank you

    • Alex

      It's on my to-do list, but I doubt I'll get to it soon. Thanks for letting me know it's important though, that helps me prioritize my time.

  • 大家好

    Hello, thank you for your tutorial. Can you increase the number of languages, such as Chinese, there are many complex English I can not understand, can not understand the meaning of a sentence.

    • Alex

      Hi. Unfortunately, I don't speak Chinese. Branching out into other languages is something I'd like to explore again, but right now the site doesn't have the infrastructure for doing the initial translations and (more difficultly) keeping them up to date as the English articles get updates based on reader feedback.

  • MHA
    on this page in example of "An introduction to std::bitset" you had set options wrong which option6 should be 5th bit not number 5 means 0101
    thanks for your good site.

  • Satwant

    Hi Alex,
      i have a problem with my visual studio. while typing a line (like any code line Eg. std::cout<<"Please press 5 for xxx function n";) ,if i move the cursor back towards left to add anything new it starts deleting code ahead of it, so i have to retype everything.
    Eg: in above code
    std::cout<<"Please press 5 for and 6 forion n";

      So i have to delete and retype everything. Earlier it was working fine. How can i bring it back to earlier style of typing ,Please help,
                          Thank You.

    • Alex

      I've never heard of such a thing. Maybe try resetting your key bindings, or do a Google search to see if anybody else has found a solution.

    • Luke

      I guess you solved this problem by now, but if anyone else has the same problem, all he has to do is to press the "Insert" button on the keyboard when he is in the editor.

  • Gavriel


    First of all, great site!!

    A little annoying thing.
    In the end of each lesson, when you press "Index"
    It goes always back and up to "Chapter0".


    Just fix that is will go back to the current chapter.

  • John Cooper

    Couldn't find Code::Blocks with MinGW bundled, but was able to download it separately and install it. Works fine now, thanks.

  • John Cooper

    OK, now I'm pissed. Tried to install  Visual Studio Community 2015. It says I need an update called  KB 2919355. I try to install this upgrade and Windows Update says this update is not applicable (I am using Windows 8.1) WTF?

  • John Cooper

    I am using Code:blocks. I get the error message

    Probably the toolchain path within the compiler options is not setup correctly?! (Do you have a compiler installed?)
    Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.

    I thought the IDE had a compiler. Does it?

  • Ok, I understand. Thanks for your quick answer!

  • Hi Alex,

    I want to thanks you for the excellent web site you did. For sure, I will read all your chapters. I have a question about the comments on your web site. Is it possible to be notified when a new comment appear on your web site?

    Kind Regards,

    • Alex

      Thanks for visiting! There is no sitewide comment notifier (in part because there are no accounts, and in part because sending that many emails would cause the site to explode). However, if you leave a comment and someone responds to your comment, you will get an email notification of that specifically (assuming you left a valid email address).

  • Nils

    Hi, i downloaded the pdf-tutorial a few weeks ago.the example code on page 143(binary files) works, but my compiler tells me "unable to open file" instead of "the complete file content is in memory" which is implied and explained after this example...
    #include <iostream>
    #include <fstream>
    using namespace std;
    ifstream::pos_type size;
    char * memblock;
    int main () {
    ifstream file ("example.bin",
    if (file.is_open())
    size = file.tellg();
    memblock = new char [size];
    file.seekg (0, ios::beg); (memblock, size);
    cout << "the complete file content is in memory";
    delete[] memblock;
    else cout << "Unable to open file";
    return 0;

    this is an exact copy of the example in the pdf...
    ty in advance :))

    • Alex

      Hi. I don't know what PDF you actually downloaded, but that example doesn't exist on this site. It sounds like maybe example.bin is in the wrong directory though.

  • Chaitanya

    The comprehensive quiz seems to be available for only 9 chapters. It would be great help if quizzes were available for the other chapters too. Thanks!!!

    PS: I love the content and the writing style!

Leave a Comment

Put all code inside code tags: [code]your code here[/code]