This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / could anyone help me on C++ question?1.How would you set up a multiple file application that had five classes?
2.What is meant by a parameterized manipulator?
3.Why should you write a virtual destructor?
4.What does "return by reference" mean, and when can you return a local variable by reference?
in fact ,I am not clear what 1 and 2 means?
and 4 means pass function's parameter by reference?????
-wendywendy(wind);
2001-6-17
{371}
(#104209@0)
-
Please help me,please
-wendywendy(wind);
2001-6-18
(#105460@0)
-
come'on in
-numnum(numnum);
2001-6-19
{954}
(#106063@0)
-
numnum is a c++ expert. i salute u.
-mrviceroy(杀人者Daniel是也);
2001-6-19
(#106457@0)
-
thanks,killer, we should try to solve people's problems when jabber is not around, shouldn't we :)
-numnum(numnum);
2001-6-20
(#107337@0)
-
u r so helpful.Thanks. Could you explain more detail about first question?Thanks again
-wendywendy(wind);
2001-6-19
(#106484@0)
-
one .h file and one .cc file for each class, so you will end up with 5 .h files and 5 .cc files. sometimes, people also add a .x file for each class to provide externel interface, in this case, .h file is used for internal implementaion.
-numnum(numnum);
2001-6-20
(#107338@0)
-
and u could add "#pragma once" at the head of the header file which is included more than once. it tells the compiler to compile it only once.
-mrviceroy(杀人者Daniel是也);
2001-6-20
(#107366@0)
-
good idea, but #progma directive is usually platform dependant. I usually add the following in each header file:
#ifdef _FILE_H_
#define _FILE_H_
....
#endif
to prevent multiple inclusion of the same header file
-numnum(numnum);
2001-6-20
(#107415@0)
-
Although having used C++ for years, I suddenly find I don't understand your terms in English :-( Who can recommend me any books on C++ in English?
-birdincage(birdincage);
2001-6-20
(#106808@0)
-
Thinking in C++, u can DL it.
-netee(netee);
2001-6-20
(#107124@0)
-
from where?
-guest:;
2001-6-20
(#107340@0)
-
www.mindview.net
-netee(netee);
2001-6-20
(#107405@0)
-
effective C++, more effective C++ , and C++ Programming Language by bjarne Stroustrup( I like the old version (thin, brownish cover, co-authored with Margret ) better than new version(thick, blue cover))
-numnum(numnum);
2001-6-20
(#107344@0)
-
Many thanks :-)
-birdincage(birdincage);
2001-6-20
(#107734@0)