由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - C++ Q88: nested non-template class
相关主题
C++ Q73: template (skillport)一道brianbench C++题
C++ Q90 - Q92请教template class怎么处理Inheritance问题(面试题)
这道题应该怎么写?Apple的一些C++概念题
唉,随便贡献个phone interview面经吧。CS的。C++ Singleton Template - 编译通不过
请问怎么用Class实现StackC++ online Test 一题
看完C++ Primer,这个C++程序的运行结果是什么
One C++ questionC++ Q 103-105
一道STL面试题C++ function template问题 (转载)
相关话题的讨论汇总
话题: nested话题: class话题: template话题: templates话题: non
进入JobHunting版参与讨论
1 (共1页)
c**********e
发帖数: 2007
1
Multiple choice: Which of the following statements are true?
A. Non-template classes can be nested.
B. It is possible to nest one class template inside another.
C. Class templates cannot be nested.
D. Class templates can be nested.
f******y
发帖数: 2971
2
abd

【在 c**********e 的大作中提到】
: Multiple choice: Which of the following statements are true?
: A. Non-template classes can be nested.
: B. It is possible to nest one class template inside another.
: C. Class templates cannot be nested.
: D. Class templates can be nested.

r*******y
发帖数: 1081
3
A, B , D?

【在 c**********e 的大作中提到】
: Multiple choice: Which of the following statements are true?
: A. Non-template classes can be nested.
: B. It is possible to nest one class template inside another.
: C. Class templates cannot be nested.
: D. Class templates can be nested.

c**********e
发帖数: 2007
4
The answer is A & C
r*******y
发帖数: 1081
5
I tried A, B, D and they are OK.

【在 c**********e 的大作中提到】
: The answer is A & C
c**********e
发帖数: 2007
6
The explanation is: Non-template classes can be nested, whereas class
templates cannot.
But I am not sure if they are correct.

【在 c**********e 的大作中提到】
: The answer is A & C
c**********e
发帖数: 2007
7
More explanation from the study material:
"One thing to keep in mind when writing class templates is that although non
-template classes can be nested, class templates cannot."
"Nesting one class template inside another generates a syntax error."
But I am not sure.
1 (共1页)
进入JobHunting版参与讨论
相关主题
C++ function template问题 (转载)请问怎么用Class实现Stack
问个C++模板定义的问题看完C++ Primer,
C++ template 指定T是某类的子类One C++ question
C++ template一道STL面试题
C++ Q73: template (skillport)一道brianbench C++题
C++ Q90 - Q92请教template class怎么处理Inheritance问题(面试题)
这道题应该怎么写?Apple的一些C++概念题
唉,随便贡献个phone interview面经吧。CS的。C++ Singleton Template - 编译通不过
相关话题的讨论汇总
话题: nested话题: class话题: template话题: templates话题: non