/* Copyright(C) 2008 All Rights Reserved. Salih Yurttas, Computer Science, TAMU. Permission to use, copy, modify, and distribute this software and its documentation for EDUCATIONAL purposes and without fee is hereby granted provided that this copyright notice appears in all copies. date : January 1, 2008. author : Salih Yurttas. A.h */ #ifndef A_H #define A_H #include using namespace std; class A { public: A(const int s=0, // common size for the int* and char* data const int* a=0, const char* c=0); A(const A&); ~A(); A& operator=(const A&); int get_size() const; int* get_a1() const; void set_a1(const int); // every position assigned identical value char* get_c1() const; void set_c1(const char); // every position assigned identical value void set_a(const int, // new size const int, // a1 is assigned with identical int const char); // c1 is assigned with identical char void set_a(const int, // new size const int*, // a1 is assigned with new int* const char*); // c1 is assigned with new char* friend ostream& operator<<(ostream&, const A&); private: int size; // common size for a1 and c1 int* a1; char* c1; }; #endif