Search:

Type: Posts; User: Kevin C

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    8,873

    C++ string literals are of type pointer to const...

    C++ string literals are of type pointer to const char (const char*). When comparing two pointers, it is their addresses that get compared, not the contents pointed to. Therefore, you cannot use...
  2. Replies
    1
    Views
    1,014

    The problem is in the first line. It should go: ...

    The problem is in the first line. It should go:

    TCHAR szCurrDrive[] = L"A:\";

    because GetLogicalDrives starts from drive A.
  3. And also, there is a benefit of my original...

    And also, there is a benefit of my original proposal with _GLIBCXX_DEBUG that the reader will learn about a nice feature of GNU C++ library, which can certainly come in handy.
  4. I wouldn't say that those instructions are...

    I wouldn't say that those instructions are complex. Besides, what's the alternative? Adding a library file to search paths of Code::Blocks is likely to be more complex.

    The tutorial is for...
  5. In my opinion, the argument was whether to use...

    In my opinion, the argument was whether to use operator[] or .at() member function. I'm all for operator[]. The exact details are of less interest to me, but it seems to me that my version is easier...
  6. Yes, but that sides with what I was arguing for....

    Yes, but that sides with what I was arguing for.

    Look more closely in the last few pages what the argument was about.
  7. Strange. In the version of Stroustrup's...

    Strange. In the version of Stroustrup's Programming that I have (2009), vectors are first introduced at the page 116. He uses them the same way as I do, with the operator[].

    Stroustrup is very...
  8. Thanks for the suggestions! I watched the...

    Thanks for the suggestions! I watched the "Structure and Intepretation of Computer Programs" videos, and I think that it is really marvelous (although it is for MIT students, not for beginners). And...
  9. Elkvis: about .at() again, it does make sense to...

    Elkvis: about .at() again, it does make sense to use it in a tutorial for people who already had some exposure to programming. Since at least 50% of the other C++ tutorials actually go too fast, and...
  10. It appears that there are some very rude and...

    It appears that there are some very rude and stubborn people on this forum, so I have decided to have a conversation only with people who are polite. Also, I will be responding only to well-meaning...
  11. And you cant find even one, even one book or...

    And you cant find even one, even one book or tutorial that goes according to your suggestion. But you want me to follow your advice.
  12. Ok, Elysia...

    Ok, Elysia and others, let me say this:

    Sometimes it happens that we, people, have some idea, and it is a good idea and we like it. And then we get kind of stuck into that idea, and we are unable...
  13. You cant find even one? So, all the other books...

    You cant find even one? So, all the other books and tutorials are wrong, and you are right?
  14. Ok, that covers many examples. But I think that...

    Ok, that covers many examples. But I think that using operator [] instead of .at() in tutorials and books is quite common. Perhaps you could point to me to some other reputable tutorials or books...
  15. So, please, will you be so kind to highlight the...

    So, please, will you be so kind to highlight the piece of code from my tutorial that you deem not to be good enough for a beginner.
  16. Do first 20 programs a beginner makes need to...

    Do first 20 programs a beginner makes need to adhere to all the best practices?

    Edit: Of course it is correct C++. All the prorgams will compile and run according to standard C++.
  17. Or to clarify that: you would like me to change...

    Or to clarify that: you would like me to change the entire philosophy of my tutorial, only to cover the C++language better, which is not a focus of the tutorial. I think you are unrealistic.
  18. Why can't you accept that there can be...

    Why can't you accept that there can be programming tutorials that are not about C++ language? Besides, I have already accepted some suggestions.
  19. You are right that it would be silly to attempt...

    You are right that it would be silly to attempt to handle all the possible compiler/STL combinations. But this is not a tutorial about C++, and I'm free to restrict the choice of IDE and compiler for...
  20. Silly me. I was working with Visual Studio for...

    Silly me. I was working with Visual Studio for too long and wondered yesterday why nothing shows up when running a program in Code::Blocks with a debugger.

    Yes, about exceptions, I was actually...
  21. I have added a note in the tutorial. That seems...

    I have added a note in the tutorial. That seems to be the best thing to do:

    Index out of Bounds | Learn Programming with C++
  22. Compilers do implement it, but on IDEs which lack...

    Compilers do implement it, but on IDEs which lack the ability to catch this error the program will just terminate. Therefore the feature is of little use for demonstrating the error, which was the...
  23. Elysia...

    Elysia:

    I'm assuming the Visual Studio because the instalation of Visual Studio and project setup was explained in chapter 3:

    Installing an IDE | Learn Programming with C++

    Creating a...
  24. Here is what I wrote about the concepts. It got...

    Here is what I wrote about the concepts. It got quite long, so I covered only the most important ideas:

    This tutorial is about learning computer programming. More precisely, it is about learning...
  25. About the name, it's "Learn Programming with...

    About the name, it's "Learn Programming with C++", but if that is not clear enough, I'm thinking of changing it into "Learn Programming - with C++" (with the dash). What do you think about this?
    ...
Results 1 to 25 of 37
Page 1 of 2 1 2