皮皮学,免费搜题
登录
搜题
【简答题】
下列给定的,fun()函数的功能是:将p所指字符串中每个单词的最后一个字母改成大写(这里的“单词”是指有空格隔开的字符串)。例如,若输入: I am a student to take the examination 则应输出:I aM A studenT tO take thE examinatioN 请改正的错误,使它能得出正确的结果。 注:不要改动main函数,不得增行或删行,也不得更改程序的结构。 试题程序: include <conio.h> include <ctype.h> include <stdio.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; clrscr(); printf('/nPlease enter an English sentence within 63 letters:'); gets(chrstr); d=strlen(chrstr); chrstr[d==' '; chrstr[d+1]=0; printf('/nBofore changing:/n %s',chrstr); fun(chrstr); printf('/nAfter changing:/n%s',chrstr); }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【简答题】—____ bread do you need? —A kilo, ple。 A. How many B. How often C. How much D. How long
【单选题】Although one might not think so from some of the criticism of it, advertising is essential to the kind of society in which people in the United Kingdom, and a very considerable proportion of the world...
A.
every potential consumer in the world
B.
large countries in the world
C.
people with a high standard of living
D.
a large number of people in the world
【单选题】组成机器的运动单元是
A.
机构
B.
构件
C.
机械
D.
零件
【单选题】Although one might not think so from some of the criticism of it, advertising is essential to the kind of society in which people in the United Kingdom, and a very considerable proportion of the world...
A.
every potential consumer in the world
B.
large countries in the world
C.
people with a high standard of living
D.
a large number of people in the world
【简答题】用特殊疑问词填空。 (what, who, where, why, which, when, how, how often , how many, how old ) 1. —_________ do you get to school in the morning? —At half past seven. 2. —_________ does Kangkang usually play vol...
【单选题】组成机器的运动单元是?
A.
机构
B.
构件
C.
部件
D.
零件
【简答题】选用正确的疑问词完称问句。 how many, how much, how long, how soon, how often 1. — ____ do you usually have an art lesson? — Twice a week. 2. — ____ will Tree Planting Day be? — In a week. 3. — ____ CDs have you go...
【简答题】Text 2 Although one might not think so from some of the criticism of it, advertising is essential to the kind of society in which people in the United Kingdom, and a very considerable proportion of th...
【单选题】Although one might not think so from some of the criticism of it, advertising is essential to the kind of society in which people in the United Kingdom, and a very considerable proportion of the world...
A.
every potential consumer in the world
B.
large countries in the world
C.
people with a high standard of living
D.
a large number of people in the world
【单选题】Although one might not think so from some of the criticism of it, advertising is essential to the kind of society in which people in the United Kingdom, and a very considerable proportion of the world...
A.
every potential consumer in the world
B.
large countries in the world
C.
people with a high standard of living
D.
a large number of people in the world
相关题目: