Joan: Would you like to go to the concert tonightLucy:()
A. But I have to work.
B. Coffee, please.
C. Fine, and you
D. May be Joan,
E. Thanks.
F. Good luck.
G. You, too
H. Yes, here you are.
27()
A. regard
B. relative
C. regular
D. irregular
请编写函数fun(),该函数的功能是:移动字符串中的内容,移动的规则是把第1到第m个字符,平移到字符串的最后,把第m+1到最后的字符移到字符串的前部。 例如,字符串中原有的内容为ABCDEFGHIJK,m的值为 3,移动后,字符串中的内容应该是DEFGHIJKABC。 注意:部分源程序给出如下。 请勿改动主函数main和其他函数中的任何内容,仅在函数fun的花括号中填入所编写的若干语句。 试题程序: #include <stdio. h> #include <string.h> #define N 80 void fun (char *w, int m) main ( ) char a[N]= "ABCDEFGHIJK"; int m; printf ("The origina string : \n"); puts (a); printf("\n\nEnter m: "); scanf ("%d", &m); fun (a, m); printf (" \nThe string after moving : \n"); puts (a); printf ("\n\n");
A.shootB.bloodC.roofD.tool