单项选择题

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
相关试题
  • 关于模板,下列说法不正确的是( )。
  • 对于常数据成员,下面描述正确的是()。
  • 下面程序的运行结果为()。 #include ...
  • 有以下程序: #include <iostream> u...
  • 下列程序中划线处正确的语句是( )。 #...