כמה טיפים שימושיים לסי++


  1. Tip N.1:
    Convert text to lower case using std ( library).
    std::transform(myString.begin(), myString.end(), myString.begin(), ::tolower);
  2. Tip N.2:
    Pointer to functions. How to do we get a pointer to a function that belongs to a class? What if it is static or a member function? The following article explains in detail how to address method pointers. Here is an example:
    int (MyClass::*NameOfFunctionPointer)(int,int,int);
    Here is some more from the code project.

Post a Comment

Previous Post Next Post