What is the result when the go() method is invoked?()
A.00
B.0001
C.000120
D.00012021
E.Compilation fails.
F.An exception is thrown at runtime.
点击查看答案
M: Susan, do you know when Professor Jones, Biology Final is W: Next Tuesday. M: Next Tuesday! That’s less than a week away, and I’ve got things planned for this weekend. W: Haven’t you been studying all along M: I have kept up with my lecture notes, but I haven’t reviewed at all. W: Then it’s your own fault. The date of the final is clearly marked on the course outline. M: I suppose you’re right, but doesn’t it seem awfully early for a final W: A little, but it should actually help us out. After we have finished with it, we can concentrate on our other finals. M: Are you ready for it W: I think I am. I’m going to review some more of course. M: Do you think we could study together sometime this weekend W: I don’t see why not. Are you doing anything tomorrow night M: I can’t tomorrow. I am going out with some guys to that new nightspot downtown. W: Well, how about the following night M: No, I can’t Saturday either. My sister and her husband are coming to town and I want to show them around. W: Sunday, then M: Well, I’ll probably sleep all morning and in the afternoon I want to go to the football game. Also that night, I have to write and type up a paper for another class. W: Michael, that leaves Monday, the night before the test. M: Actually, I’ve got plans for Monday night too. How about early Tuesday morning W: Michael, the test is on Tuesday morning.
M: Susan, do you know when Professor Jones, Biology Final is
W: Next Tuesday.
M: Next Tuesday! That’s less than a week away, and I’ve got things planned for this weekend.
W: Haven’t you been studying all along
M: I have kept up with my lecture notes, but I haven’t reviewed at all.
W: Then it’s your own fault. The date of the final is clearly marked on the course outline.
M: I suppose you’re right, but doesn’t it seem awfully early for a final
W: A little, but it should actually help us out. After we have finished with it, we can concentrate on our other finals.
M: Are you ready for it
W: I think I am. I’m going to review some more of course.
M: Do you think we could study together sometime this weekend
W: I don’t see why not. Are you doing anything tomorrow night
M: I can’t tomorrow. I am going out with some guys to that new nightspot downtown.
W: Well, how about the following night
M: No, I can’t Saturday either. My sister and her husband are coming to town and I want to show them around.
W: Sunday, then
M: Well, I’ll probably sleep all morning and in the afternoon I want to go to the football game. Also that night, I have to write and type up a paper for another class.
W: Michael, that leaves Monday, the night before the test.
M: Actually, I’ve got plans for Monday night too. How about early Tuesday morning
W: Michael, the test is on Tuesday morning.
点击查看答案
有如下程序#include <iostream>#include <iomanip>using namespace std; class MyClass public:MyClass() cout<<’A’; MyClass(char c) cout<<c; ~MyClass() cout<<’B’; ;int main() MyClass p1,*p2;p2=new MyClass(’X’);delete p2;return 0;执行这个程序屏幕上将显示输出( )。
A.ABXB.ABXBC.AXBD.AXBB
点击查看答案