由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] simple question
相关主题
[合集] 两个小问题[合集] 一个数据结构问题
[合集] one simple question[合集] c++里面到底destructor是不是要virtual的?
[合集] C help(urgent)!!! thanks a lot!![合集] pointer in C
[合集] 快速填充memory的方法?[合集] What are the differences between "const char* p" and "c
[合集] 可以在不同的文件里定义名字相同结构不同的两个class?[合集] g++下log函数出现问题
[合集] C里面return 1代表失败,return 0代表成功,对么?[合集] float data type question
[合集] 有没有哪位高手可以帮小妹看一下偶滴程序的?[合集] 请问哪位有Hilbert transform 的 C code
[合集] 又学了一招C++ Q88: nested non-template class (转载)
相关话题的讨论汇总
话题: apr话题: tue话题: class话题: thrust话题: sliced
进入Programming版参与讨论
1 (共1页)
c***d
发帖数: 996
1
☆─────────────────────────────────────☆
longtian (自由+回到地球) 于 (Tue Apr 3 15:03:22 2007) 提到:
class A {};
class B : public A {};
template class C {};
int main()
{
C ca;
C cb;
return 0;
}
cb will be sliced in the assignment to ca. is this right?
What does 'sliced' mean here?
☆─────────────────────────────────────☆
thrust (Thrust Jaeina) 于 (Tue Apr 3 15:14:56 2007) 提到:
不知道啥意思.

☆─────────────────────────────────────☆
longtian (自由+回到地球) 于 (Tue Apr 3 15:19:03 20
1 (共1页)
进入Programming版参与讨论
相关主题
C++ Q88: nested non-template class (转载)[合集] 可以在不同的文件里定义名字相同结构不同的两个class?
Help: who has gcc 4.0 or higher[合集] C里面return 1代表失败,return 0代表成功,对么?
C++ 进阶问题[合集] 有没有哪位高手可以帮小妹看一下偶滴程序的?
thrust help ~~~[合集] 又学了一招
[合集] 两个小问题[合集] 一个数据结构问题
[合集] one simple question[合集] c++里面到底destructor是不是要virtual的?
[合集] C help(urgent)!!! thanks a lot!![合集] pointer in C
[合集] 快速填充memory的方法?[合集] What are the differences between "const char* p" and "c
相关话题的讨论汇总
话题: apr话题: tue话题: class话题: thrust话题: sliced