Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "List.h"
- #include "Random.h"
- #include "Timer.h"
- #include "Key.h"
- using namespace std;
- typedef Key Record;
- int main()
- {
- int n;
- int p=3;
- List<int> the_list;
- Record data;
- cout<<"Enter the number of records to be stored. "<<endl;
- cin>>n;
- for(int i=0;i<n;i=i++)
- {
- the_list.insert(i,i);
- }
- cout<<the_list.size();
- the_list.retrieve(p, data);
- cout<<"Record value: "<<data;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement