コード例 #1
0
ファイル: circle.c プロジェクト: Gaoyuan0710/Datatructures
int main(int argc, char *argv[])
{
	STU * head, *p;

	head = creat_circle();
	show_circle(head);

	p = head->next->next->next;
	show_circle(p);

	delet_circle(p);
	show_circle(p);

	return EXIT_SUCCESS;
}
コード例 #2
0
ファイル: main.c プロジェクト: panzhao/some_exercises
int main()
{
   int peop_num = 100;
   int out_num = 3;
   creat_circle(peop_num);
   
   struct people *temp_node = head;
   
   printf("数组中的数是:");
   print_all();
   
   
   printf("\n");

   printf("%d\n", print_last(peop_num,out_num));

   print_all();
   
   printf("检测是否释放完毕如果返回值为1释放完毕:\n");
   printf("返回值:%d\n",free_all());
   return 0;
}