Пример #1
0
void main()
{
  LinkList list;

  Initialization(&list);
  int i;
  for (i=0; i<10; i++)
  {
    InsertTail(list, i);
  }
  PrintList(list);
  printf("List length: %d\n", ListLength(list));

  InsertTail(list, 5);
  FindDup(list);
}
Пример #2
0
int main(void)
{
    int a[] = {1, 2, 3, 4, 5, 6, 6, 7};
    printf("%d\n", FindDup(a, 7));
}