![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
程序
heyunde
这个作者很懒,什么都没留下…
展开
-
排序方法----选择排序
#include#include#include void printfArray(inta[],int num){inti=0;for(i=0;i{printf("%d ",a[i]);}} //选择排序//外层循环 当i=0时,让j从 1—N进行变化//外层循环 当i=1时,让j从 2—N进行变化原创 2016-06-24 11:07:32 · 260 阅读 · 0 评论 -
字符串基本操作
字符串: 1、C语言的字符串是以0结尾的字符串 2、C语言中没有字符串类型,而是通过字符数组,来模拟字符串 3、字符串的内存分配可以在 堆上、栈上、全局区(很重要)#include "stdio.h"#include "stdlib.h"#include "string.h"//字符数组 初始化void main61(){ // 1 指定长度 char buf原创 2016-08-01 15:47:45 · 306 阅读 · 0 评论 -
数组中括号与指针关系、数组名常量指针分析
数组中括号与指针的关系原创 2016-08-01 15:52:18 · 2060 阅读 · 0 评论 -
字符串做函数参数
字符串做字符拷贝函数的参数原创 2016-08-01 17:05:40 · 1516 阅读 · 0 评论 -
在字符串copy函数中引入辅助指针变量
特别注意:不要轻易改变函数形参的值,要引入一个辅助指针变量,把形参的值接过来原创 2016-08-01 19:58:18 · 382 阅读 · 1 评论