No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
How do i make an array class that contains pointers to objects? (in this case, object of type travel.) right now all i got is array of object, not pointer...... [code] class Array { public: Array(); Array(int size); Array(const Array & anArray); ~Array(); friend ostream& operator<< (ostream& out, const Array … |
|
HI i have a small problem but for some reason i can't think of how to do it. I'm making a linear linked list of arrays. The Array is of travel class object. So in the struct node, how should i implement so that the size of the array is … |
|
I've been trying to work it out for more than 10 hours already and still can get pass this The basic skeleton is like this [code] class BST { public: .... void insert (const device & aDevice); ..... private: ..... }; class device : public BST { ..... }; [/code] … |
|
how do you make a node of pointer of a device? (device is just a class that i made up, i need to use pointers in LL so i can "share" one object with multiple LLs) [code] struct node { device * devicePtr; node * left, * right, * next; … |
|
Write a program that, given a file of text (called poems.dat), will read in several lines of text, until end of file is reached and display a table indicating the number of occurrences of each letter in the alphabet in the text. For example, the phrase “This is great fun! |