#include <stdio.h>
#include <stdlib.h>

int Swquential_Search(int *a, int n, int key)
{
	int i;
	a[0] = key;
	i = n;

	while(a[i] != key)
	{
		i--;
	}

	return i;
}

posted on 2013-04-27 17:45  纯洁的坏蛋  阅读(156)  评论(0编辑  收藏  举报