This repository has been archived on 2024-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
justhomework/ex5/ex5.cpp
2021-10-22 00:13:46 +08:00

24 lines
311 B
C++

#include "vec.cpp"
#include "list.cpp"
#include <time.h>
#include <stdio.h>
int main()
{
srand(time(NULL));
Vec v(54,2);
v.printall();
List l;
printf("¿ªÊ¼½¨Á¢Á´±í\n");
for(int i=0;i<=53;i++)
{
l.firstInsert(v.get(i));
printf("%d\n",l[0]);
}
return 0;
}