#include <stdio.h>
#include <stdlib.h>
int main()
{
int arr[] = {4, 8, 8, 4, 5, 9, 3, 5};
int count = 0;
int sz = sizeof(arr)/sizeof(arr[0]) - 1;
int i = 0, j = 0;
for (i=0; i<sz; i++)
{
count = 0;
for (j=0; j<sz+1; j++)
{
if (arr[i] == arr[j])
{
count ++;
}
}
if (count == 1)
{
printf("%d ", arr[i]);
}
}
system ("pause");
return 0;
}
/*
运行结果:
9 3 请按任意键继续. . .
*/