自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 资源 (1)
  • 收藏
  • 关注

原创 选择排序

#include#define SIZE 8typedef int SqList[SIZE];void SelectSort(SqList &Sq,int n)//13,38,65,97,76,27,49,49{ int temp=0; for(int i=0;i<n;++i)//选择的趟数 { for(int j=i;j<n;++j)//其实只比较了n-i次

2015-06-18 01:55:12 526

原创 位运算实现两个数的加法

#includeint add(int a,int b){ if(b==0) return a; int sum,ret; sum=a^b; ret=(a & b)<<1; return add(sum,ret);}void main(){ int a=4; int b=5; int sum=0; sum=add(a,b); printf("%d\n",sum);

2015-06-12 17:51:32 1335

原创 链表的逆制

要求:用单链表来实现逆制? 注明:之前用的顺序表实现过逆制,现在用链式结构来实现逆制#include#includetypedef struct Node{ int data; struct Node *next;}Node;void Init(Node *phead)//初始化链表{ phead->data=0; phead->next=NULL;}void

2015-06-05 22:30:46 1614

C语言深度剖析

http://u.download.csdn.net/upload?ref=toolbar

2014-12-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除