c程题目求解答516.编写函数voidfun(char*st-查字典问答网
分类选择

来自刘浏的问题

  c程题目求解答516.编写函数voidfun(char*str),将参数字符串中各单词首字母变大写,其余字母变小写.输入输出在main中实现.如输入"youHAVE10books,don'tyou?"输出"YouHave10Books,Don'tYou?".单词以空格

  c程题目求解答5

  16.编写函数voidfun(char*str),将参数字符串中各单词首字母变大写,其余字母变小写.输入输出在main中实现.如输入"youHAVE10books,don'tyou?"输出"YouHave10Books,Don'tYou?".单词以空格、逗号、句号分隔.

  #include

  voidfun(char*str)

  {

  }

  main()

  {chara[100];

  gets(a);

  fun(a);

  puts(a);

  }

  17.n个整数,前面各数循环顺序后移m个位置,最后m个数变成最前面m个数.写函数voidfun(int*p,intn,intm),实现上述功能.在main()中输入与输出.如下面程序输出78910123456.注意,m可能大于n.

  #include"stdio.h"

  voidfun(int*p,intn,intm)

  {

  }

  main()

  {voidfun(int*,int,int);

  intx[10]={1,2,3,4,5,6,7,8,9,10},i;

  fun(x,10,14);

  for(i=0;i

1回答
2020-12-26 15:34
我要回答
请先登录
刘有恒

  #include"stdio.h"

  #include"stdlib.h"

  voidfun(int*p,intn,intm)

  {

  inttemp;

  int*q=(int*)malloc(n*sizeof(int));

  for(inti=0;i

2020-12-26 15:38:06

最新问答

推荐文章

猜你喜欢

附近的人在看

推荐阅读

拓展阅读

  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  •