题目内容

现有两个C程序文件T18.C和myfun.C同在TC系统目录(文件夹)下,其中T18.C文件如下: #include #include"myfun.c" main() {fun();printf("\n");} myfun.C文件如下: void fun() {char S[80],C;int n=0; while((C=getchar())!=’’\n’’)S[n++]=c; n--; while(n>=0)prinff("%C",s[n-]); } 当编译连接通过后,运行程序T18时,输入Thank!则输出结果是:【 】。

查看答案
更多问题

Passage Three Similar to a non-financial business, a commercial bank obtains funds from creditors and shareholders; uses funds for its raw materials labor, and recovers funds, hopefully in excess of the amount. The raw materials purchased are funds instead of steel, clothing, or groceries. As in non-financial business a band management’s basic objective should be to maximize the value of the owner’s investment in the bank. Useful information on the appropriate tradeoffs between made and risks taken is obtained from relatively efficient markets for most publicly held banks. The management of smaller banks seeks to achieve the highest returns for the risk level deemed appropriate by the shareholders. A commercial bank should try its best to increase the profits of its creditor and ownership sources.

A. Right
B. Wrong
C. Doesn’t say

Directions: In this section, you will hear ten short conversations. At the end of each conversation, a question will be asked about what was said. The conversation and question will be spoken only once. During the pause, you must read the four choices marked A, B, C, D, and decide which is the best answer.

About long-term relationship between the banker and the client.
B. About long-term loans.
C. About housing loans.
D. About short-term loans.

Passage Two A banking organization’s management should ensure that documents governing securitizations it sponsors do not include any covenants related to supervisory actions or thresholds. Effective immediately, the use of covenants that provide for the early amortization of a securitization or compel the transfer of servicing as a result, directly or indirectly, of the occurrence of a supervisory action or event will, under appropriate circumstances, be criticized as an unsafe and unsound banking practice. Moreover, banking organization management is encouraged to amend, modify, or remove these covenants from existing transactions. Any impediments a banking organization may have to taking such actions should be documented and discussed immediately with its Reserve Bank. Securitization is an unsafe and unsound banking practice.

A. Right
B. Wrong
C. Doesn’t say

[说明] 从文件in.dat中读取一篇英文文章存入到字符串数组xx中,以行为单位对行中以空格或标点符号为分隔的所有单词进行倒排。最后把已处理的字符串(应不含标点符号)仍按行重新存入字符串数组xx中,最后把结果xx输出到文件OUT6.DAT中。 原始数据文件存放的格式是:每行的宽度均小于80个字符,含标点符号和空格。 [函数] #include<string.h> #include<conio .h> #include<ctype.h> #include<stdio.h> char xx[50][80]; int maxline = 0 ; /*文章的总行数*/ int ReadDat (void) ; void WriteDat (void) ; void StrOL(void) char *p1,*p2,t [80]; int i; for (i=0; i<maxline; i++) p1=xx[i];t[0]=0; while (*p1) p1++; while (p1>=xx [i]) while (! isalpha (*p1) &&p1 ! =xx [i]) p1--; p2 =p1; while( (1) )p1--; if (p1==xx [i]) if (isalpha (*p1) p1--; else if (! isalpha (* (p1+1;)) break; p2++; (2) ; strcat (t,p1+1) ; strcat (t, " ") ; strcpy (xx [i] ,t) ; void main if( (3) ) printf ("数据文件in.dat不能打开! \n\007") ; return; StrOL (); writeDat (); getch; int ReadDat (void) FILE *fp; int i=0; char *p; if ((fp=fopen ("e:\\a\\\in.dat " , "r")) ==NULL) return 1; while (fgets (xx [i] , 80, fp) ! =NULL) p=strchr (xx [i] , ’\n’) ; if(p)*p=0 i++ ; maxline= (4) ; fclose (fp); return 0; void WriteDat (void) FILE *fp; int i; fp=fopen("e: \\a\\out6 .dat" ,"w"); for (i=0; i<( (5) ) ; i++) printf("%s\n" ,xx [i]); fprintf (fp, "%s\n", xx[i]); fclose(fp);

答案查题题库