A.to increase the number of shares outstanding
B.reduce the market price of the stock per share
C.reduce earnings per share
D.increase the market activity of the shares
E.increase paid-in capital
第1题:
阅读以下说明和C++代码,将解答写入对应栏内。
[说明]
类Stock的定义中有三处错误,分别在代码的第04、06、10行。请补齐下述代码中的空缺(1)~(3),修改错误并给出修改后该行的完整代码,最后完善程序运行后的输出结果。
[C++程序]
01 include<iostream.h>
02 using namespace std;
03 class Stock{
04 protected:
05 Stock(){shares=0; share_val=0.0;Output();}
06 Stock(int n=0,double pr=3.5): (1) {//初始化shares值为n
07 share_val=pr;
08 Output();
09 };
10 void~Stock(){};
11 void Output()(cout<<shares<<';'<<share val<<endl;}
12 public:
13 //成员函数
14 private:
15 //成员变量
16 int shares;
17 double share_val;
18 };
19
20 void main(){ //构造三个Stock对象a,b,C
21 Stock a(1);
22 Stock b;
23 Stock C;Stock();
24 //其他代码省略,且代码无输出
25 }
程序运行后的输出结果为:
1:3.5
(2)
(3)
第2题:
第3题:
第4题:
A.requestsystemsnapshotrescue
B.requestsystemsnapshotfactory
C.requestsystemsnapshotdefault
D.requestsystemsnapshotas-primary
第5题:
第6题:
3、输入“2021-9-28”,要想得到年份y、月份m和天数d的整数,以下操作不正确的是
A.y,m,d=map(int,input().split('-'))
B.y,m,d=map(eval,input().split('-'))
C.y,m,d=map(int,input().split())
D.y,m,d=input().split('-') y=int(y) m=int(m) d=int(d)