thank both of you for replies.
That makes sense to me
Type: Posts; User: AntiScience
thank both of you for replies.
That makes sense to me
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...
I haven't read any material about a temporary object yet....
but I'll save this for later:)
yea, this is important:) I like this notion:P
So laserlight answered my question :)
thanks to both of you:)
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
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...
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()...
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
ok everyone, I have another stupid question...
what's wrong with this function implementation?
#include <map>
#include <iterator>
#include <iostream>
#include <fstream>
Thanks. your answer is really helpful
and Thanks to all too :)
Thanks.
so the result of the second case is exactly same as the result of the first one?
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>...