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

24 lines
311 B
C++
Raw Normal View History

2021-10-21 16:13:46 +00:00
#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;
}