题目内容

给定程序MODI1.C中函数fun()的功能是:将p所指字符串中每个单词的最后一个字母改成大写(这里的“单词”是指由空格隔开的字符串)。 例如,若输入”I am a student to take the examination.”,则应输出”I aM A studenT tO takE thE examination.”。 请修改程序中的错误之处,使它能得出正确的结果。 注意:不要改动main()函数,不得删行,也不得更改程序的结构。 #include<ctype.h> #include<stdio.h> #include<string.h> void fun(char *p) int k=0; for(; *p;p++) if(k) /**********found**********/ if(p==’’) k=0; /**********found**********/ *(p)=toupper(*(p-1)) else k=1; main() char chrstr[64]; int d; printf("\nPlease enter an English sentence within 63 letters:"); gets(chrstr); d=strlen(chrstr); chrstr[d]=’’; chrstr[d+1]=0; printf("\n\nBefore changing:\n %s",chrstr); fun(chrstr); printf("\nAfter changing:\n%s",chrstr);

查看答案
更多问题

国际招标采购货物,招标文件约定报价采用到岸价(CIF),且评标价格的调整因素有延迟交货按照货物投标价格的每周0.5%折价;提前或延迟付款按月利率1%折价;按照开标当日中国人民银行授权公布的欧元对美元的中间价1:1.4转换成美元的评标价格;货物进口环节综合税率为到岸价的25%。某投标人的投标价格为9500000欧元,评标中发现其报价多计算50000欧元,交货期比招标要求延迟2周,且有300000欧元货款要求提前1个月支付,内陆运输费、保险费及其他伴随服务费用28500美元。 [问题] 计算该投标人的评标价格。

What does the driver mean [A] He’ll try his best. [B] He cannot because there are so many cars at this hour. [C] He doesn’t like driving fast.

What’s the probable relationship between the two speakers

A. Teacher and student.
B. Husband and wife.
C. Doctor and patient.

What does the man mean

A. He has to think it over.
B. He has decided to give it up.
C. He wants some suggestions.

答案查题题库