问题 单项选择题

胆固醇合成的直接碳源是

A.乙酰CoA
B.丁二酰CoA
C.HMGCoA
D.丙二酰CoA
E.琥珀酰CoA

答案

参考答案:A

单项选择题
问答题

请使用VC6或使用[答题]菜单打开考生文件夹proj2下的工程proj2。其中有向量基类VectorBase、向量类Vector和零向量类ZeroVector的定义。请在横线处填写适当的代码并删除横线,以实现上述类定义。该程序正确输出结果应为:
(1,2,3,4,5)
(0,0,0,0,0,0)
注意:只能在横线处填写适当的代码,不要改动程序中的其他内容,也不要删除或移动“//****found****”。
#include<iostream>
using namespace std;
class VectorBase //向量基类,一个抽象类
int len;
public:
VectorBase(int len):len(len)
int length()constreturn len;
//向量长度,即向量中元素的个数
virtual double getElement(int i)const=0;//取第i个元素的值
virtual double sum()const=0;
//求所有元素的和
void show()const//显示向量中所有元素
cout<<"(";
for(int i=0;i<length()-1;i++)
cout<<getElement(i)<<",";
//********found********
cout<<______<<")"<<endl;//显示最后一个元素

;
class Vector:public VectorBase
//向量类
double*val;
public:
Vector(int len,double v[]=NULL):
VectorBase(len)
val=new double[len];
for(int i=0;i<len;i++)val[i]=(v==NuLL0.0:v[i]);

//********found********
~Vector()______;
double getElement(int index)const return val[ index];
double sum()const
double S=0.0;
//********found********
for(int i=0;i<length();i++)______;
return s;

;
class ZeroVector:public VectorBase
//零向量类
public:
ZeroVector(int len):VectorBase
double getElement(int index)const______;
double sum()constreturn 0.0;;
int main()
VectorBase * V;
double d[]=1,2,3,4,5;
v=new Vector(5,d);
v->show();
delete V;
V=new ZeroVector(6);
V->show();
delete V;
return 0;