|
If you would pass an object instead of a reference, this would in turn call the copy constructor (because a copy of the object is made and passed to the function), so you will end in an infinite loop of calling copy constructor.
And for the const, it makes sense that you want to make a copy of the original object and not modify it.
|
|
|
|
|
toxcct wrote: hey, will you stop asking dummy question and think a little by yourself...
And another thread (How to Authorize a Dll Loading[^]):
that's stupid...
Did someone pee in your Cheerios today?
Jeff
|
|
|
|
|
You have posted several questions within a short amount of time that suspiciously look like homework.
__________________
Bob is my homeboy.
|
|
|
|
|
I dunno, they've been trying to figure out copy constructors since January. December
|
|
|
|
|
Remembering copy constructors I want to know if anyone knows the optimization issues with it. Does a compiler automatically synthesise a copy constructor if it is not found. What is the performance hit vis a vis a contructor although they both serve the different purpose.
Does anyone have debugged a copy constructor when it is not exclusively mentioned for a class.
|
|
|
|
|
Plz tell me how events are processed (flow of direction from WinApp to Doc)in Doc-view architecture in VC++?
|
|
|
|
|
Plz look it up in MSDN.
WM_CONTROL is one of the words you could try searching.
Failure is not an option - it's built right in.
|
|
|
|
|
jhwurmbach wrote: WM_CONTROL is one of the words you could try searching.
Got a link for that message?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
No, but additionally to making a sniding remark at me (which I deserved), you *could* have given him the link to WM_COMMAND .
Failure is not an option - it's built right in.
|
|
|
|
|
jhwurmbach wrote: ...you *could* have given him the link to WM_COMMAND.
You're assuming I knew that was your intent. I had no idea what message you were referring to (hence the sincere question).
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Provide me a simple code for multithreading,so that i can start it.
|
|
|
|
|
See Here[^]
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
It seems that your link has problem. www.codeproject.com/info/error500.asp?500;http://www.codeproject.com/useritems/MultithreadingTutorial.asp
|
|
|
|
|
|
|
The best place to start is here[^].
The article will help you avoiding common pitfalls when starting with multithreading.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
One very important thing you should realize is that it is HARD to write robust, reliable, multithreaded code, and you can't toss off a one-afternoon example and expect it is going to be right. Master the basics first.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
When does vtable create? Run time or compile time.
Plz reply in descreptive way.
|
|
|
|
|
pan_angel wrote: When does vtable create? Run time or compile time.
See this[^].
|
|
|
|
|
my question is .
Is there any difference between the terms
function prototype
and
funciton return type ???
|
|
|
|
|
my question is .
Is there any difference between the terms
function prototype
and
funciton return type ???
Yes, there is. The return type is a part of prototype. Besides, a prototype contains also the argument list of the function. Note that the name of the function is fictive [in C++].
Consider the following prototype;
RETURN_TYPE functionname(ARGUMENT_LIST);
Got?
--
=====
Arman
|
|
|
|
|
Arman Z. Sahakyan wrote: Note that the name of the function is fictive
Is this an Armenian word?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I thought it was an English word. Neither it is an Armenian. But we use this word, perheps influenced from Russian language. It means 'not important' or 'formal'.
--
=====
Arman
|
|
|
|
|
Arman Z. Sahakyan wrote: It means 'not important' or 'formal'.
Strange how it can mean both since "not important" and "formal" are contrasting.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
The function prototype specifies the whole signature of the function,
i.e. the name of the function, its return value type, the types (and the order) of the its arguments.
Hence function return type is only a part of the function prototype.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|