单项选择题

C++语言中,编译过程后生成的文件类型为( )。

A.*.cpp
B.*.obj
C.*.h
D.*.exe
<上一题 目录 下一题>
热门 试题

单项选择题
假设有函数模板定义如下,下列各选项中正确的是( )。 Template <class T> T Max(T a,T b,T c) if(a<b) if(b<c) return c; else return b; else if(a<c) return c; else return a;
A) float x,y,z;float max;max=Max(x,y,z);
B) float x;int y,z;float max;max=Max(x,y,z);
C) float x;double y,z;float max;max=Max(x,y,z);
D) 三个选项都正确
单项选择题
有如下程序: #include <iostream> using namespace std; class test private: int a; public: test ( ) cout << constructor << endl; test(int a) cout<<a<<endl; test(const test &_test) a =_test. a; cout << copy constructor << endl; ~ test( ) cout << destructor << endl; ; int main( ) test A(3); return 0; 执行这个程序的输出结果是( )。
A.3
B.constructor
destructor
C.copy constructor
destructor
D.3
destructor
相关试题
  • 下列程序对加号进行了重载,划线部分的语句...
  • 当线性表采用顺序存储结构实现存储时,其主...
  • 以下程序的输出结果是 【8】 。 #incl...
  • 一个项目具有一个项目主管,一个项目主管可...
  • 多态性分两类:编译时的多态性和______。