![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言
light514
这个作者很懒,什么都没留下…
展开
-
new types may not be defined in a return type 排错
出现这个报错信息一般是类的定义或者结构的定义后面没有分号EX:struct student{ char name[10]; int age; } /如果不加分号出现这个报错信息:new types may not be defined in a return type原创 2013-01-28 21:04:06 · 3010 阅读 · 0 评论 -
插入排序
参考书目《算法设计、分析与实现从入门到精通:c、c++和java》。第一篇总结一下插入排序的算法:void insertSort(int *a,int n){ int i,j;//j用来记录要插入的元素的下标 int key;//用来记录要插入的数for(j=1;j key=a[j]; i=j-1;while(i>=0&&a[i]>key){ a[i+1]=a[原创 2013-01-13 22:53:32 · 403 阅读 · 0 评论