24 lines
311 B
C++
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("<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
|
|||
|
|
|||
|
for(int i=0;i<=53;i++)
|
|||
|
{
|
|||
|
l.firstInsert(v.get(i));
|
|||
|
printf("%d\n",l[0]);
|
|||
|
}
|
|||
|
|
|||
|
return 0;
|
|||
|
}
|