问题 计算题

已知一个碳12原子的质量为1.993×10﹣26kg,一个氧原子的质量为2.657×10﹣26kg,求氧原子的相对原子质量.

答案

氧原子的相对原子质量===16

答:氧原子的相对原子质量为16.

单项选择题
多项选择题

请使用“答题”菜单或使用VC6打开考生文件夹proj2下的工程proj2。此工程包含一个程序文件main.cpp,其中的Array是一个表示数组的模板类。Array的成员a用于指向存放数据的数组,size表示该数组的大小。此程序的输出结果应为:
8
29,20,33,12,18,66,25,14
66,33
注意:只能在画线处填写适当的代码,不要改动程序中的其他内容,也不能删除或移动//************found************。
//源程序
#include <iostream>
#include <cstdlib>
using namespace std;
template<class Type>
class Array//数组类
Type *a;
int size;
public:

Array(Type b[],int mm):size(mm)//构造函数
if(size<2) cout<<"数组长度太小,退出运行!\n";exit(1);
//************found************
a=______;//a指向申请的数组空间
for(int i=0; i<size; i++) a[i]=b[i];//************found************
~Array()______; //析构函数
void MaxTwo(Type& x1,Type& x2) const;//由x1和x2带回数组a中的两个最大值
//************found************
int Length() const______;//返回数组长度
Type operator[](int i) const
//下标运算符重载成员函数
if(i<0 || i>=size)cout<<"下标越界!"<<endl;exit(1);
return a[i];;
//由x1和x2带回数组a中的两个最大值
template<class Type>
void Array<Type>::MaxTwo(Type& x1,Type& x2) const //补充完整函数体的内容
//将数组a中头两个数据赋值给x1和x2,使得x1>=x2
//************found************
______(x1=a[0],x2=a[1]):(x1=a[1],x2=a[0]);
for(int i=2;i<size; i++)
if(a[i]>x1)x2=x1; x1=a[i];
else if(a[i]>x2) x2=a[i];
void main()
int s1[8]=29,20,33,12,18,66,25,14;Array<int> d1(s1,8);
int i,a,b;
d1.M axTwo(a,b);
cout<<d1.Length()<<endl;
for(i=0;i<7;i++) cout<<d1[i]<<",";
cout<<d1[7]<<endl;cout<<a<<","<<b<<endl;