Search:

Type: Posts; User: AntiScience

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    2,915

    thank both of you for replies. That makes sense...

    thank both of you for replies.
    That makes sense to me
  2. Replies
    3
    Views
    2,915

    Two conceptual questions

    Hi there, I was trying to summary some basic conceptions about class inheritance and I am not 100% sure about my answer to the following two questions. Please point out if my answer is wrong. And any...
  3. Replies
    14
    Views
    1,643

    I haven't read any material about a temporary...

    I haven't read any material about a temporary object yet....
    but I'll save this for later:)
  4. Replies
    14
    Views
    1,643

    yea, this is important:) I like this notion:P

    yea, this is important:) I like this notion:P
  5. Replies
    14
    Views
    1,643

    So laserlight answered my question :) thanks to...

    So laserlight answered my question :)
    thanks to both of you:)
  6. Replies
    14
    Views
    1,643

    then it really seems to me that the qualifier...

    then it really seems to me that the qualifier "const" in "const BigClass &v" is not necessary, since v won't be changed at all by just do initialization of _val to v
  7. Replies
    14
    Views
    1,643

    Thanks, your answer cleared up most of my...

    Thanks, your answer cleared up most of my confusion. However, if class val_class provides a member function which returns a non-const reference that could be changed in consequent operations, and...
  8. Replies
    14
    Views
    1,643

    confused by "const"

    in Lippman's essential c++, he wrote:

    In the following class, the val() member function does not directly modify the _val data member, but it does return a non-const reference to _val. Can val()...
  9. Replies
    3
    Views
    849

    ahhhhhhhh,,,,I should use typename in this way!...

    ahhhhhhhh,,,,I should use typename in this way!
    hehe,,,I haven't read anything about that in the book yet -_-#
    anyway, problem solved, thanks!


    --------
    the 3rd day
  10. Replies
    3
    Views
    849

    stupid question...

    ok everyone, I have another stupid question...

    what's wrong with this function implementation?



    #include <map>
    #include <iterator>
    #include <iostream>
    #include <fstream>
  11. Replies
    10
    Views
    1,695

    Thanks. your answer is really helpful and...

    Thanks. your answer is really helpful
    and Thanks to all too :)
  12. Replies
    10
    Views
    1,695

    Thanks. so the result of the second case is...

    Thanks.
    so the result of the second case is exactly same as the result of the first one?
  13. Replies
    10
    Views
    1,695

    A question about passing arguments

    Hi all, I just start learning c++ and I'm a little bit confused with passing parameters to function. hope you can help me out

    Check the example:


    //definition of a function
    vector<int>...
Results 1 to 13 of 14