阅读以下说明和C++程序,将应填入(n)处的字句写在对应栏内。【C++程序】#inc

题型:问答题

问题:


阅读以下说明和C++程序,将应填入(n)处的字句写在对应栏内。
【C++程序】
#include < stdio. h >
#include < string. h >
#define Max 1000
class Bank
{
int index;
char date [Max] [10]; // 记录交易日
iht amount[Max];// 记录每次交易金额,以符号区分存钱和取钱
int rest[ Max]; // 记录每次交易后余额
static iht sum; // 账户累计余额
public:
Bank( ) {index =0;}
void deposit( char d[ ] , int m) //存入交易
{
strcpy ( date [ index ], d);
amount[ index] = m;
(1) ;
rest[ index] = sum;
index++;
}
void withdraw (char d[ ], int m) //取出交易
{
strcpy( date[ index] ,d);
(2) ;
(3) ;
rest[ index] = sum;
index++;
}
void display( );
};
int Bank:: sum = 0;
void Bank:: display ( )//输出流水
{
int i;
printf("日期 存入 取出 余额\n");
for (4)
{
printf(" %8s" ,date[i] );
if (5)
printf(" %6d" , -amount[i] );
else
printf( "%6d ",amount[i] );
printf( "% 6d\n" ,rest[i] );
} }
void main( )
{
Bank object;
object. deposit ( "2006.2.5", 1 00 );
object. deposit( "2006.3.2" , 200);
object. withdraw( "2006.4.1", 50);
object. withdraw( "2006.4.5", 80);
object. display ( );
}
本程序的执行结果如下:
日期 存入 取出 余额 2006.2.5100 100
2006.3.2200 300
2006.4.150 250
2006.4.580 170

考点:计算机软件水平考试初级程序员程序员
题型:问答题

第七组:
患者左锁骨中线第四肋间刀刺伤,血压80/ 60mmHg,脉搏128次/分,呼吸40次/分,心前区搏动减弱,颈静脉怒张。

最可能的诊断

A.血气胸

B.心包填塞

C.大血管损伤

D.肺损伤

E.以上均不正确

题型:问答题

EvansPRST评分麻醉合适()

A.0~1分

B.1~2分

C.2~4分

D.4~5分

E.5~8分

题型:问答题

TMN物理结构主要描述什么?

题型:问答题

下列选项中,说法错误的是( )。

A.企业法人应当在核准登记的经营范围内从事经营
B.企业法人对它的法定代表人和其他工作人员的经营活动承担民事责任
C.企业法人分立、合并或者有其他重要事项变更,应当向登记机关办理登记并公告
D.企业法人分立、合并,它的权利和义务仍由变更前的法人享有和承担

题型:问答题

嗜肺军团菌的特性,正确的是()

A.常用革兰染色,阴性

B.最适生长温度为30℃

C.营养要求高,在含血清的培养基上生长

D.兼性厌氧菌,胞外寄生

E.可引起医院感染

更多题库