Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

rangetst1.cpp

Go to the documentation of this file.
00001 //
00002 //######################################################################
00003 //            CAMrange Sample Program  #1
00004 //
00005 // Chris Andersion (C) UCLA 1997                                8/18/97
00006 //######################################################################
00007 //
00008 /*
00009    This program demonstrates the use of CAMrange constructors and member
00010    functions. 
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   

Generated on Wed Sep 5 12:54:24 2007 for DSACSS Operational Code by  doxygen 1.3.9.1