Search:

Type: Posts; User: cpjust

Search: Search took 0.03 seconds.

  1. I'm not sure why you'd need to know if the...

    I'm not sure why you'd need to know if the function is static or not, but I guess if you really want to know that (without looking at the header file) then you do have a point. A good IDE might be...
  2. Well whether the function is static or not,...

    Well whether the function is static or not, there's still just one of them in memory. You don't get a new copy of the function when you create a new instance of a class. The only difference between...
  3. I think it's because if you do it like that, it's...

    I think it's because if you do it like that, it's basically the same as doing this:

    A* a = new A;
    a->print();
    Although I'm not sure why the static version works.

    Use this instead of the ugly...
Results 1 to 3 of 3