有如下语句序列: char str[10];cin>>str; 当从键盘输入”I love this game”时,str中的字符串是
A. "I love this game"
B. "Ilove thi"
C. "I love"
D. "I\
查看答案
有以下程序 #include <iostream> using namespace std; class sample private: int x; public: sample(int a) x=a; friend double square(sample s); ; double square(sample s) return s.x*s.x; int main() sample s1(20),s2(30); cout<<square(s2)<<endl; return 0; 执行结果是( )。
A. 20
B. 30
C. 900
D. 400
下列关于会计主体与法律主体表述正确的是( )。
A. 会计主体与法律主体相同
B. 法律主体不一定是会计主体
C. 会计主体一定是法律主体
D. 法律主体往往是会计主体,但会计主体不一定是法律主体
银行利率8%,按复利计,现存款10000元,10年内每年年末的等额提款为( )元。
A. 1000
B. 1200
C. 1490
D. 1600
某类中有一个无参且无返回值的常成员函数Show,则正确的Show函数原型是( )。
A. const void Show();
B. void const Show();
C. void Show()const;
D. void Show(const);