发信人: kreisler (little Kreisler), 信区: Programming
标 题: Re: godly C++ programmers needed
发信站: Unknown Space - 未名空间 (Thu Oct 21 22:10:08 2004) WWW-POST
I am trying to answer your questions even though I don't consider a new job at
this time. Also as I mentioned, I am not a C++ expert.
1. delete this is commit suicide. There is many things should be aware.
Probably I can't cover all of them.
first of all, "this" object is not allocated memory by new or placement new.
secondly, member function of this can't call any members of "this".
Also, be sure never use "this" after you delete "this".
2. When delete a pointer through base class pointer, destructor need be
3. Are you asking member function of class or just function?
4. encapsulation prevents unauthorized access of members of class. Its purpose
is to ensure any changes of data won't break other classes.
5. Good things about multithreaded is be able to do multiple things at the
same time so that often it improves the performance.
Bad things: it is very hard to debug and makes code very complicated.
【 在 irobotsoft (irobot) 的大作中提到: 】
: like that, if u don't know these basic questions,
: certainly not a good fit.
: 1.delete this 的目的是什么？有什么优劣性？
: 2. 为什么make a class destructor virtual？
: 3. 在什么时候声明函数要用const?
: 4. 在程序中如何实现封装(encapsulation)的概念？理由是什么？
: 5. 多线程(Multithread)的优缺点是什么
: 【 在 kreisler (little Kreisler) 的大作中提到: 】
: : What do you expect from a godly C++ programmers? I am just curious.
: : 【 在 irobotsoft (irobot) 的大作中提到: 】
: : : Employment Opportunity
: : :
: : : Free Peers, Inc. is looking for godly C++ programmers to work on
: : : BearShare, a Gnutella peer-to-peer file sharing application. Must
: : : be willing to relocate to South Florida.
: : :
: : : Skills required:
: : :
: : : Microsoft Visual C++
: : : MFC
: : : Multithreaded client-server architectures
: : : OOD
: : : GUI development
: : : Source Safe
: : : TCP/IP Networking
: : :
: : : Free Peers has a relaxed and casual workplace. We put a premium on
: : : quality of life. By working intelligently and efficiently, there is
: : : time to enjoy life. Our office is an open workplace that involves
: : : everyone in what is happening in the business. The goal is for
: : : everyone to be excited, happy, and challenged, and to have the
: : : opportunity to live up to their potential. Part of the fun of
: : : working at BearShare is hanging out with co-workers. Our small size
: : : and open work environment creates an esprit de corps rarely found in
: : : organizations. This creates a powerful learning environment where
: : : people freely consult with each other and share their experience and
: : : knowledge.
: : :
: : : Please send your resume to [email protected]
: : :
I belong to nobody and I just belong to myself; I don't belong to myself and I belong to everyone.
※ 来源:．Unknown Space - 未名空间 mitbbs.com．[FROM: 24.191.]