更多"Michael: I find the idea of pork fo"的相关试题:
[单项选择]Michael: I find the idea of pork for breakfast strange. May: ______
A. My roommate usually has pork for breakfast.
B. I don’t like pork, either.
C. Me, too.
D. It’s strange, isn’t it
[单项选择]Most Americans find the idea of arranged marriages difficult to understand or accept. They believe that two people should marry for love, after a period of dating or courtship. From their point of view, marriage is the result of mutual attraction and affection rather than practical consideration.
In the United States, parents do not arrange marriages for their children. The couple meet independently, either through their academic experience or social contact, without the assistance of a go - between or a matchmaker.
How do couples meet in the United States
A. With the assistance of a matchmaker.
B. Through academic experience or social contact.
C. With the help of their parents.
D. Through the arrangement of the families.
[填空题]If you could find a witness, it could greatly (strength) ______ his case.
[简答题]编写一个函数find Str( ),该函数统计一个长度为2的字符串在另一个字符串中出现的次数。例如,假定输入的字符串为"asd asasdfg asd as zx67 asd mklo",子字符串为“as”,函数返回值是6。
函数ReadWrite( )的功能是实现从文件in40.dat中读取两个字符串,并调用函数findStr( ),最后把结果输出到文件out40.dat中。
注意:部分源程序已给出。
请勿改动主函数main( )和其他函数中的任何内容,仅在函数findStr( )的花括号中填入你所编写的若干语句。
试题程序:
#include<stdio.h>
#include<string.h>
#include<conio.h>
int findStr(char *str,char *substr)
main( )
char str[81],substr[3];
int n;
clrscr( );
printf ("输入原字符串:");
gets(str);
printf("输入子字符串:");
gets(substr);
puts(str);
puts(substr);
n=findstr(str,substr);
printf("n=%d/n",n);
ReadWrite( );
ReadWrite( )
char ch,str[81],substr[3];
int n, len, i=0;
FILE *rf,*wf;
rf=fopen ("in40.dat","r");
wf=fopen ("out40.dar","w");
while (i<5)
fgets(str,80,rf);
fgets(substr,10,rf);
le
[填空题]运行下面程序,其输出结果(str2的值)为 【13】 。
Dim str1,str2 As String
Dim i As Integer
str1="abcdef"
For i=1 To Len(str1)Step2
str2=UCase(Mid(str1,i,1))+str2
Next
MsgBox str2
[填空题]指令“AND AX,STR1 AND STR2”中,STR1 STR2是两个已赋值的变量,两个AND的区别是,第一个AND 是逻辑与指令,而第二个AND是逻辑与工 【3】 。
[填空题]指令“AND AX,STR1 AND STR2”中,STR1和STR2是两个已赋值的变量,两个AND的区别是第一个AND是逻辑与指令,而第二个AND是逻辑与______。