有如下程序: #include<iostream> using namespace std; class Amount{ int amount; public: Amount(int n=0):amount(n){ } int getAmount( )const{return amount;} Amount&operator+=(Amount A) { amount+=a.amount; return; } }; int main( ){ Amount x(3),y(7); x+=y: cout<<x.getAmount( )<<endl; return 0; } 已知程序的运行结果是10,则下画线处缺失的表达式是
A.*this
B.this
C.&amount
D.amount
第1题:
第2题:
BookStore数据库中有销售明细表OrderDetail(OrderCode, BookCode, Amount) 查询销售总量前20%的图书,并按总销量降序排列。SQL语句: SELECT TOP 20 PERCENT Bookcode As 书号, SUM(Amount)As总销量 ROM OrderDetail GROUP BY Bookcode ORDER BY ________
A.Amount DESC
B.SUM(Amount) DESC
C.COUNT(Amount) DESC
D.ADD(Amount) DESC
第3题:
写出下面代码的运行结果。def addInterest(balance,rate): newBalance=balance*(1+rate) balance=newBalance def main(): amount=1000 rate=0.05 addInterest(amount,rate) print (amount) main()
第4题:
7、BookStore数据库中有销售明细表OrderDetail(OrderCode, BookCode, Amount) 查询销售总量前20%的图书,并按总销量降序排列。SQL语句: SELECT TOP 20 PERCENT Bookcode As 书号, SUM(Amount)As总销量 ROM OrderDetail GROUP BY Bookcode ORDER BY ________
A.Amount DESC
B.SUM(Amount) DESC
C.COUNT(Amount) DESC
D.ADD(Amount) DESC
第5题:
【单选题】BookStore数据库中有销售明细表OrderDetail(OrderCode, BookCode, Amount)查询销售总量前20%的图书,并按总销量降序排列。SQL语句: SELECT TOP 20 PERCENT Bookcode As 书号, SUM(Amount)As总销量 ROM OrderDetail GROUP BY Bookcode ORDER BY ________
A.Amount DESC
B.SUM(Amount) DESC
C.COUNT(Amount) DESC
D.ADD(Amount) DESC