以下程序运行后的输出结果是【 】。
include<iostream.h>
void main()
{
char a[]="abcdabcabfgacd";
int i 1=0,i2=0,i=0;
while (a[i])
{
if (a[i]=='a')
il++;
if (a[i]=='b')
i2++;
i++;
}
cout<<il<<' '<<i2<<endl;
}
查看答案
有以下程序:
include <iostream>
using namespace std;
class sample
{
int x;
public:
void setx(int i)
{
x=i;
}
int putx ()
{
return x;
}
};
int main ()
{
sample *p;
sample A[3];
A[0] .set>:(5);
A[1] .setx(6);
A[2] .setx(7);
for (int j=0;j<3;j++)
{
p=&A[j];
cout<<p->putx () <<", ";
}
cout<<end1;
return 0;
}
执行后的输出结果是【 】。
For this part, you are allowed 30 minutes to write a short essay entitled What Electives to Choose. You should write at least 120 words following the outline given below.
1. 各大学为学生开设了多种多样的选修课;
2. 学生出于各种原因选择不同的选修课;
3. 以我自己为例......。
What Electives to Choose
______________________________________________________________________________
______________________________________________________________________________
Doing one thing may mean another like the case may be. These are 【M1】______
things that we should look out for, as it can easily give things out about 【M2】______
both yourself and the observer. A simple touch of the nose should mean 【M3】______
that you/they aren't being truthful.
A lot of us move our heads when we are talking to get approval from
others. If you want to look powerful, you should try to keep your head
movement to a minimum. 【M4】______
How much you show your underbelly is a way of showing how
confident, secure or trusting you are. The less you cover your underbelly 【M5】______
with folded arms, crossed legs, raised hands, etc, the more appropriate
the qualities may be. Folding your arms may look as you are trying to 【M6】______
defend yourself and will look bad to other person. If you talk to someone 【M7】______
who has folded arms and crossed legs and perhaps turned away slightly, 【M8】______
you may think that he is uninterested and also feeling detached away from 【M9】______
your conversation. If he starts to unfold his arms, uncross his legs, and it【M10】______
may be a sign that be is accepting your issue.
【M1】
第二节 书面表达
情景:你们班昨天上午去山上植树了。
任务:请用英语写一篇50词左右的日记。内容包括:
1.何时,去哪里植树;
2.同学们劳动的场景;
3.什么时候回来的;
4.植树是非常有意义的。
请用下面格式:
Sunday April 10 Sunny