单项选择题
C++模板包括( )。
A) 类模板和函数模板
B) 模板类和模板函数
C) 类和函数
D) 对象和函数
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有如下程序:#include <iostream>using namespace std;class Baseprivate: char c;public: Base(char n):c(n) ~Base() cout<<c; ;class Derived: public Baseprivate: char c;public: Derived(char n):Base(n+1),c(n) ~Derived() cout<<c; ;int main() Derived obj('x'); return 0; 执行上面的程序将输出()。
A. xy
B. yx
C. x
D. y
点击查看答案&解析
单项选择题
在整型指针变量ptr1、ptr12的定义中,错误的是 ______。
A) int x, *ptr1, ptr2;
B) int*ptrl, x, *ptr2;
C) int x,*ptrl=&x,*ptr2;
D) int*ptr1, x,*ptr2=&x;
点击查看答案
相关试题
索引从物理上分为聚簇索引和 【5】 。
为解决在多重继承环境中因公共基类带来的 ...
将以下程序写成三日运算表达式是 【9】 ...
数据结构分为逻辑结构与存储结构,线性链表...
有以下程序: #include <iostream> u...