There's no doubt that work has found its way into every hour of our day, thanks to beepers, cell phones and e-mail.
There's no doubt that work has found its way into every hour of our day, thanks to beepers, cell phones and e-mail.
相关考题:
The man ,a ____ translator,work 8 hours a day ,but earns little. A. part-timeB. part-dayC. full-timeD. whole-day
给定程序MODl1.C中函数fun的功能是:从低位开始取出长整型变量s中奇数位上的数,依次构成一个新数放在t中。高位仍在高位,低位仍在低位。例如:当s中的数为2736598时,t中的数为:2358。include<conio.h>include<stdio.h>/************found************/void fun(long s,long t){ long s1=10;*t=S%10;while(s>0){ s=s/l00;*t=S%10*s1+*t;/************found************/s1=s1*100;}}main(){longs,t;clrscr();printf ("\nPlease enter s:”);scanf("%ld",s);fun(s,t);printf("The result is:%1d\n",t);}
为使下列程序的正确输出结果为: Now is 2004-7-6 12:12:12 那么应该在程序划线处填入的语句是( )。 #include <iostream> using namespace std; class TIME; class DATE { public: DATE(int y=2004,int m=1,int d=1) { year=y; month=m; day=d; } void DateTime(TIME t); private: int year,month, day; }; class TIME { public: TIME(int h=0,int m=0,int s=0) { hour=h; minute=m; second=s; } ______________; //将类 DATE 中成员函数 DateTime 声明为类 TIME 的友元函数 private: int hour,minute, second; }; void DATE: :DateTime(TIME t) { cout<<"Now is "<<year<<'-'<<month<<'-'<<day<< ' '<<t.hour<<":"<<t.minute<<': '<<t.seoond<<'.'<<end1; } int main ( ) { DATE d(2004,7,6); TIME t (12, 12, 12); d. DateTime (t); return 0; }A.friend void DateTime(TIME t);B.friend void DATE::DateTime(TIME 0;C.void DateTime(TIME t);D.friend void DateTime(TIME t);
为了使程序的输出的正确结果为: Now is 2004.7.10 10:10:10. 那么应在下列程序划线处填入的正确语句是( )。 那么应在下列程序划线处填入的正确语句是( )。 #include <iostream> using namespace std; class TIME; class DATE { public: DATE(int y=2004,int m=1,int d=1) { year=y; month=m; day=d; } friend void DateTime(DATE d, TIME t); private: int year, month, day; }; class TIME { public: TIME(iht h=0, int m=0,int s=0) { hour=h; minute=m; second=s; } friend void DateTime(DATE d,TIME t); private: int hour,minute, second; }; ______________________ //函数 DateTime 的首部 { cout<<"Now is"<<d.year<<'.'<<d.month<<'.'<<d.day<< ' '<<t.hour<<":"<<t.minute<<':'<<t.second<<'.'<<end1; } int main ( ) { DATE d(2004,7,10); TIME t(10, 10, 10); DateTime(d,t); return 0; }A.void DateTime(DATE d,TIME t)B.void TIME::DateTime(DATE d,TIME t) constC.friend void DateTime(DATE d,TIME t)D.void DATE::DateTime(DATE d,TIME t)
以下对象对其成员引用正确的是 。 class Time { public: int hour; int minute; void display() {cout<<hour<<minute<<endl;} }t1;A.hour.t1B.t1.hourC.t1.displayD.display().t1
给定一个类及对象的定义,以下各选项中使用正确的是 。 class Time { private: int hour; int minute; public: int second; void set() {cin>>hour>>minute>>second;} void display() {cout<<hour<<minute<<second<<endl;} }t1, t2;A.t1.hour=10;B.t2.minute=20;C.t1.second=10;D.t1.set;
2、下列哪一个静态字段表示一周中的第几天。A.HOUR_OF_DAYB.WEEK_OF_YEARC.WEEK_OF_MONTHD.DAY_OF_WEEK