Advertisement
Guest User

main.cpp

a guest
Jan 2nd, 2011
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include <iostream>
  2. #include "List.h"
  3. #include "Random.h"
  4. #include "Timer.h"
  5. #include "Key.h"
  6. using namespace std;
  7. typedef Key Record;
  8. int main()
  9. {
  10.     int n;
  11.     int p=3;
  12.     List<int> the_list;
  13.     Record data;
  14.     cout<<"Enter the number of records to be stored. "<<endl;
  15.     cin>>n;
  16.     for(int i=0;i<n;i=i++)
  17.     {
  18.     the_list.insert(i,i);
  19.     }
  20.     cout<<the_list.size();
  21.     the_list.retrieve(p, data);
  22.     cout<<"Record value: "<<data;
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement