由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
CS版 - CS 面试题求教
相关主题
Two interview questions? (转载)问个Fortran的问题,急求解答
cognos BI的认证哪些比较有用? (转载)Google 电面 algorithm 问题
关于文献管理How to resolve "terminate called after throwing an instance of 'std::bad_alloc'???
[转载] Re: BT实战Java 问题, 请帮忙!
++ a faster or a++ faster in C?这个在visual c++下怎么编不来,
问个问题Visual Studio 2010 的数组定义
有没有懂LDA(Blei)model得大侠给解释一下Valgrind报uninitialized value was created by a heap allocat (转载)
Re: Re: Re: 申请成立MacDev(可口苹果)版 (转载)怎样高效管理内存? (转载)
相关话题的讨论汇总
话题: class话题: memory话题: assignment话题: deallocate话题: what
进入CS版参与讨论
1 (共1页)
l******e
发帖数: 94
1
1. Assignment operation on classes - If I assign a class instance to another
class instance A = B What code execute ( i.e. to deal with the assignment
operator what code would the compiler have generated)?
2. Suppose there is a class dealing with memory allocations and
deallocations. It has methods to allocate/deallocate memory. Now the class
uses some memory for its implementation - for example its own metadata
maintenance. Where, in code, would I deallocate that memory?
T********r
发帖数: 6210
2

another
assignment
constructor
class
destructor

【在 l******e 的大作中提到】
: 1. Assignment operation on classes - If I assign a class instance to another
: class instance A = B What code execute ( i.e. to deal with the assignment
: operator what code would the compiler have generated)?
: 2. Suppose there is a class dealing with memory allocations and
: deallocations. It has methods to allocate/deallocate memory. Now the class
: uses some memory for its implementation - for example its own metadata
: maintenance. Where, in code, would I deallocate that memory?

l******e
发帖数: 94
3
can you say some details about 1 ? and should it be constructor or copy
constructor?

【在 T********r 的大作中提到】
:
: another
: assignment
: constructor
: class
: destructor

1 (共1页)
进入CS版参与讨论
相关主题
怎样高效管理内存? (转载)++ a faster or a++ faster in C?
linux内存分配中page的几个问题 (转载)问个问题
读CE方向的PHD将来找工作情形如何?有没有懂LDA(Blei)model得大侠给解释一下
面试题 - white elephant gift exchangeRe: Re: Re: 申请成立MacDev(可口苹果)版 (转载)
Two interview questions? (转载)问个Fortran的问题,急求解答
cognos BI的认证哪些比较有用? (转载)Google 电面 algorithm 问题
关于文献管理How to resolve "terminate called after throwing an instance of 'std::bad_alloc'???
[转载] Re: BT实战Java 问题, 请帮忙!
相关话题的讨论汇总
话题: class话题: memory话题: assignment话题: deallocate话题: what