动物园里有7头大象,4只金丝猴。金丝猴的数量是大象数量的几分之几?大象的数量是金

题型:解答题

问题:

动物园里有7头大象,4只金丝猴。金丝猴的数量是大象数量的几分之几?大象的数量是金丝猴的数量的几倍?(用假分数表示)

考点:真分数,假分数,带分数分数的认识及意义
题型:解答题

网银登录用户名用于用户初次登录网银,用户首次登录网银后必须重新设定用户名和登录密码。()

题型:解答题

有关燃料燃烧过程中的变化,下列说法不正确的是                       [ ]

A.所有的燃烧过程均是放热的

B.需要点燃才能发生的燃烧过程是吸热的

C.所有燃料在燃烧过程中均会发生化学键的断裂

D.燃烧后产物的总能量一定小于反应物的总能量

题型:解答题

制得的分析试样应(),供测定和保留存查。

A、一样一份

B、一样二份

C、一样三份

D、一样多份

题型:解答题

一锅炉房师傅,化学性窒息性气体中毒后皮肤、黏膜呈樱桃红色的原因主要是()

A.呼吸加快

B.空气氧含量增加

C.动脉血氧含量增加

D.动静脉血氧差下降

E.心跳及血液循环加快

题型:解答题

[说明]
设计一个日期类Date,包括年、月、日等私有数据成员。要求实现日期的基本运算,如某日期加上天数、某日期减去天数、两日期相差的天数等。
在Date类中设计如下重载运算符函数。
Date operator+(int days):返回某日期加上天数得到的日期。
Date operator-(int days):返回某日期减去天数得到的日期。
int operator-(Date &b):返回两日期相差的天数。
[C++程序]
#include<iostream. h>
int day_tab[2][12]=31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,
31, 29, 31,30, 31, 30, 31, 31,30,31,30,31;
//day_tab二维数组存放各月天数,第一行对应非闰年,第二行对应闰年
class Date

int year,month,day;//年,月,日
int leap (int); //判断是否为闰年
int dton (Date&);
Date ntod (int);
Public:
Date()
Date(int y,int mint d)year=y;month=m;day=d;
void setday (intd) day=d;
void setmonth (int m)month=m;
void setyear(int y)year=y;
int getday()return day;
int getmonth()return month;
int getyear() return year;
Date operator+(int days) //+运算符重载函数

static Date date;
int number= (1) ;
date=ntod (number);
return date;

Date operator-(int days) //-运算符重载函数

statis Date date;
int number= (2) ;
number-=days;
date=ntod (number);
return date;

int operator-(Date &b) //-运算符重载函数

int days= (3) ;
return days;

void disp()

cout<<year<<"."<<month<<","<<day<<endl;

;
int Date::leap (int year)
if( (4) ) //是闰年
return 1; //不是闰年
else
return 0;

int Date::dton (Date &d) //求从公元0年0月0日到d日期的天数

int y,m,days=0;
for (y=1;y<=d.year;y++)
if( (5) )days+=366; //闰年时加366天
else days+=365; //非闰年时加365天
for (m=0;m<d.mont.h-1;m++)
if (leap (d.year)
days+=day_tab [1] [m];
else
days+=day__tab [0][m];
days+=d.day;
return days;
Date Date::ntod (int n) //将从公元0年0月0日的天数转换成日期

int y=1,m=1,d,rest=n,1p;
while (1)
if (leap (y))
if (rest<-366)break;
else rest-=366;
else //非闰年
if (rest=365)break;
else rest-=365;
y++;

y--;
1p=leap (y);
while (1)

if (1p) //闰年
if (rest>day_tab [1][m-1])rest-=day_tab [1] [m-1];
else break;
else //非闰年
if(rest>day_tab[0] [m-1])rest-=day_tab[0][m-1];
else break;
m++:

d=rest;
return Date (y; m, d);

void main()

Date now(2003, 10,1),then (2005,6,5);
cout<<"now:"; now. disp();
cout<<"then:"; then .disp();
cout<<"相差天数:"<<(then-now)<<endl;
Date d1=now+1000,d2=now-1000;
cout<<"now+1000:"; d1. disp();
cout<<"now-1000:"; d2. disp();

更多题库