voidmain()(voidstrchange(char*p,intk)inttotal(char*q)intnchara[10],*str1str1=aprintf("Pleaseenterthestring:")scanf("s",str1)n=total(str1)strchange(str1,n)printf("s",str1)print("n"))inttotal(char*q)(intj,sum=0for(j=0*qj++,q++)sum=sum+1returnsum)voidstrchange(char*q,intk)(inti,j,rfor(i=0,j=k-1i<+ji++,j-)(r=*(q+i)*(q+i)=*(q-IMDN开发者社群-imdn.cn"> voidmain()(voidstrchange(char*p,intk)inttotal(char*q)intnchara[10],*str1str1=aprintf("Pleaseenterthestring:")scanf("s",str1)n=total(str1)strchange(str1,n)printf("s",str1)print("n"))inttotal(char*q)(intj,sum=0for(j=0*qj++,q++)sum=sum+1returnsum)voidstrchange(char*q,intk)(inti,j,rfor(i=0,j=k-1i<+ji++,j-)(r=*(q+i)*(q+i)=*(q - IMDN开发者社群-imdn.cn">
登录
首页 » Matlab » #包括<;stdio. h & gt;

#包括<;stdio. h & gt;

于 2022-03-10 发布 文件大小:650.00 B
0 120
下载积分: 2 下载次数: 1

代码说明:

#include void main(){ void strchange(char *p,int k) int total(char *q) int n char a[10],*str1 str1=a printf("请输入字符串:") scanf(" s",str1) n=total(str1) strchange(str1,n) printf(" s",str1) print(" ") } int total(char*q){ int j,sum=0 for(j=0 *q j++,q++) sum=sum+1 return sum } void strchange (char*q,int k){ int i,j,r for(i=0,j=k-1 i

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • HW_3
    SImulation of real time traffic signals
    2010-06-11 21:19:54下载
    积分:1
  • matlab
    说明:  matlab详细函数总汇,为您写程序时不能想起的函数做好准备。(Details of function matlab pool of written procedures for your function can not think of preparing.)
    2011-03-09 21:32:21下载
    积分:1
  • read_segy_file
    在地球物理勘探中读取与导出SEG-Y格式数据(reads a SEG-Y file and outputs a seismic structure)
    2016-03-24 13:25:58下载
    积分:1
  • pinpu
    说明:  将激光器输出的时间序列转化成频谱序列,以更好的分析频谱特性(The time series of laser output is converted into frequency series to better analyze the spectrum characteristics.)
    2021-02-21 17:29:43下载
    积分:1
  • shape context
    Shape Context Demo Serge Belongie (sjb@eecs.berkeley.edu) Sept. 4, 20001.
    2022-03-01 08:57:57下载
    积分:1
  • pldacode
    基于Probabilistic Linear Discriminant Analysis的人脸识别matlab源码(matlab code for probabilistic linear discriminant analysis applied to face recognition)
    2020-06-29 08:20:02下载
    积分:1
  • implement fourier transform by matlab
    用matlab实现傅立叶变换
    2022-02-06 13:50:37下载
    积分:1
  • apolloeq
    说明:  一个不错的MATLAB算法 主要对apolloeq函数进行绘图(a good MATLAB algorithm for the main function mapping apolloeq)
    2005-11-21 20:25:12下载
    积分:1
  • psnr
    峰值信噪比(PSNR),一种评价图像的客观标准。水印提取判断效果。(Peak Signal to Noise Ratio (PSNR), objective criteria for evaluating image. Determine the effect of watermark extraction.)
    2014-09-24 10:44:51下载
    积分:1
  • ofdm-mimo
    Principal scheme of the MIMO toolbox is shown in Fig. 1. Desired pattern taken a discrete alphabet is used to generate testing data. The data are then encoded in the channel encoder and split into the multiple parallel streams. T
    2014-11-06 17:27:29下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载