00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "access.h"
00013 #include <iostream.h>
00014 #include <stdio.h>
00015 #include <stdlib.h>
00016
00017 int main()
00018 {
00019 cout << "CAMrange Object _(1,3) : " << _(1,3) << endl;
00020 cout << endl;
00021
00022 CAMrange R(-1,1);
00023
00024 cout << "CAMrange Object R : " << R << endl;
00025 cout << "CAMrange Object R+2 : " << R+2 << endl;
00026 cout << "CAMrange Object R-2 : " << R-2 << endl;
00027 cout << "CAMrange Object R++ : " << R++ << endl;
00028 cout << "CAMrange Object R-- : " << R-- << endl;
00029 cout << "R.getCount() = " << R.getCount() << endl;
00030 cout << "R.length() = " << R.length() << endl;
00031
00032 cout << endl;
00033
00034 R.initialize(-2,2,2);
00035 cout << "R.initialize(-2,2,2) : " << R << endl;
00036 cout << "CAMrange Object R : " << R << endl;
00037 cout << "CAMrange Object R-2 : " << R-2 << endl;
00038 cout << "CAMrange Object R++ : " << R++ << endl;
00039 cout << "CAMrange Object R-- : " << R-- << endl;
00040 cout << "R.getCount() = " << R.getCount() << endl;
00041 cout << "R.length() = " << R.length() << endl;
00042
00043 cout << " Program End : Hit Any Key to Terminate " << endl;
00044 getchar();
00045 return 0;
00046 }
00047