1. 首页
  2. 数据库
  3. 其它
  4. 一波C语言字符数组实用技巧集锦

一波C语言字符数组实用技巧集锦

上传者: 2021-02-21 22:00:16上传 PDF文件 49.54KB 热度 7次
字符数组倒序 #include void daoxu(char str[]){ int i; char temp; for(i = 0; i < strlen(str) / 2 ; i ++){ temp = str[i]; str[i] = str[strlen(str) - i-1]; str[strlen(str) - i-1] = temp; } } 单词计数 int wordCount(char str[]){ int i; int count = 0; int
下载地址
用户评论