Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Mark Carroll Newsgroups: comp.programming Subject: Re: Designing a suite of algorithms in C++ Date: Mon, 01 Feb 2016 12:04:05 +0000 Organization: none Lines: 16 Message-ID: <871t8w1vt6.fsf@ixod.org> References: <2df6fc12-e6c9-4f5b-bdb7-21e35a57edbb@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="1b3e5cba9e4d07a53741e6f3d1717925"; logging-data="27215"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eMze0XEMqPScvROuEIxTG" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:aUHvKeRjshHGo2ctLnaiUj7w3po= sha1:AUR0sYFOSEGq0qx/FEdpsH+zMbU= Xref: csiph.com comp.programming:6250 On 01 Feb 2016, Paul wrote: > The post below was also sent to comp.lang.c++ but it's been more than > half a day, and I haven't got any responses so I'd like to post it to > this group. That's not long to wait! > If I only had the first four to worry about, the design could be very simple. > I would have a pure abstract class as a base of all the algorithms. Finding the solution is done via a virtual function which depends on the algorithm selected by the user. ... and such details of how OO works are rather C++-specific. Good luck though. -- Mark