boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - how much memory does it take to save the member function in a class ?
相关主题
问个C++ virtual function的问题 (转载)
inline functions in C++
请教个virtual function的问题
python 可以给class动态添加method吗?
请教一个class design的问题
__FUNCTION__ 是怎么回事呀?
pointer to function
[合集] C/C++ calling function by name
How to use a function return by reference in C++
function in c++
相关话题的讨论汇总
话题: class话题: does话题: member话题: memory话题: save
进入Programming版参与讨论
1 (共1页)
s*****w
发帖数: 1527
1
say
class{
char a;
int b;
void func();
}
what's the size of this class pls ?
d*******d
发帖数: 2050
2
i guess you will see 8.

【在 s*****w 的大作中提到】
: say
: class{
: char a;
: int b;
: void func();
: }
: what's the size of this class pls ?

N***m
发帖数: 4460
3
func does not count.

【在 s*****w 的大作中提到】
: say
: class{
: char a;
: int b;
: void func();
: }
: what's the size of this class pls ?

t****t
发帖数: 6806
4
这个问题问得不是很好, 但是你刚好把他想考的方面答错了. 你没有考虑到数据的对齐.
f*****Q
发帖数: 1912
5
在内存里和在硬盘上的空间会一样么?

齐.

【在 t****t 的大作中提到】
: 这个问题问得不是很好, 但是你刚好把他想考的方面答错了. 你没有考虑到数据的对齐.
1 (共1页)
进入Programming版参与讨论
相关主题
function in c++
return value of a python function...
Is this function's behavior undefined?
C++ function template问题
这个function pointer最后的那个int是什么意思?
一年多前我发了几个贴子关于FP的想法
做大项目的话,有两个语言features是杀手
问个 C++到C的问题
问一个inheritance的初级问题
[合集] C++ private member question
相关话题的讨论汇总
话题: class话题: does话题: member话题: memory话题: save