当字符串为"This Is a c Program",ch的值为’a’输出结果应为:"This Is A c Progr
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/11/05 12:23:21
当字符串为"This Is a c Program",ch的值为’a’输出结果应为:"This Is A c ProgrAm"
#include #include void fun(char str1[],char ch) { // } main() { char str1[80]="This Is a c Program"; clrscr(); printf("String is:%s\n",str1); fun(str1,'a'); printf("Result is:%s\n",str1); NONO( ); } NONO( ) { FILE *fr,*fw; int i,j; char s1[80],ch; fr=fopen("C:\\homework\\11045311\\PROGIN.DAT","r"); fw=fopen("C:\\homework\\11045311\\PROGOUT.DAT","w"); for(i=1;i
#include #include void fun(char str1[],char ch) { // } main() { char str1[80]="This Is a c Program"; clrscr(); printf("String is:%s\n",str1); fun(str1,'a'); printf("Result is:%s\n",str1); NONO( ); } NONO( ) { FILE *fr,*fw; int i,j; char s1[80],ch; fr=fopen("C:\\homework\\11045311\\PROGIN.DAT","r"); fw=fopen("C:\\homework\\11045311\\PROGOUT.DAT","w"); for(i=1;i
/* begin */ while (*str != \'0') { if (*str == ch) { *str = toupper(*str); } ++str; } /* end */
当字符串为"This Is a c Program",ch的值为’a’输出结果应为:"This Is A c Progr
this is a c program什么意思
C入门编程题:在屏幕上输出一行信息:This is a C program.
java编程:字符串this is a test 倒序输出 test is a this
This is a(an)____ TV program.A.living B.alive C.live D.life
一段C语句 printf("This is a c program.\n"); 后面的\n" 还有一个问题 main()
this is a ( ) game .c开头的
1.This is my a pen.A为This B为my C为pen 问哪个是错误的- 并写出正确答案.A B C
如何将一句句子里的一个单词大写比如this is a program 改成 this is A program..
This is a (c )game.Ilike it
介绍amy给你的朋友,A.She is Amy.B.This is Amy.C.This Amy.选A还是B?好纠结,为
C语言:输入一句话(英语),这个话每个字母出现的次数,(包括数字和标点).例如:This is a C program