Forum: C++ Apr 16th, 2008 |
| Replies: 22 Views: 2,683 Hi Duoas and Lerner,
Just a quick post to thank you for your help. I received my mark yesterday; 27/30!
Many thanks,
Zeke |
Forum: C++ Jan 9th, 2008 |
| Replies: 22 Views: 2,683 Hi Duoas,
Thanks for your reply!
1. I think I can see your reasoning; if I make ApplyFilter() a method of the TheFilter class then it need only accept data of class, TheData (i.e. int... |
Forum: C++ Jan 8th, 2008 |
| Replies: 22 Views: 2,683 Hi Duoas and Lerner,
The program is almost complete and I’m very happy with it! Just the following issues remain:
1. The member function, ApplyFilter() currently reads:
int... |
Forum: C++ Jan 8th, 2008 |
| Replies: 22 Views: 2,683 Thank you both for your help and advice. I now have the program working correctly although it still needs a great deal of refinement.
I favour Lerner's approach of a third class for the filtered... |
Forum: C++ Jan 3rd, 2008 |
| Replies: 22 Views: 2,683 My progress so far. The two areas that I'm having difficulty with are those that Lerner and Duoas have been (heatedly!) discussing; namely, outsourcing the code in main() and implementing the... |
Forum: C++ Jan 3rd, 2008 |
| Replies: 22 Views: 2,683 Hi Duoas,
My apologies for not being more forthcoming with the stipulations of the task. From my understanding, main() can only instantiate one object; this object can then go on to... |
Forum: C++ Jan 3rd, 2008 |
| Replies: 22 Views: 2,683 Thank you both for your help. To clear things up, I've attached the stipulations of the task below: |
Forum: C++ Dec 31st, 2007 |
| Replies: 22 Views: 2,683 Hi Lerner,
Thanks so much for your post!
The task stipulates explicitly that we have to use classes and that all data members must be private. I appreciate that this complicates the program... |
Forum: C++ Dec 30th, 2007 |
| Replies: 22 Views: 2,683 Duoas,
Thank you for your helpful reply!
It's such a relief that you've advised me to change the TheData and TheFilter structs to classes, as I had done this already - although I had no... |
Forum: C++ Dec 30th, 2007 |
| Replies: 22 Views: 2,683 Hi all,
I’ve been given told to convert a standard C++ program into an object-oriented one, using the principals of polymorphism, encapsulation and inheritance. Our lecturer covered all three... |