Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Can I teoricaly do the same program and with same speed in C and C++?

Author: Gregor Overney

Date: 22:10:27 08/30/99

Go up one level in this thread


Yes. You do not need classes to write a "nice" chess program. But why should you
not leverage from other peoples efficient data structures in C++ if you had the
choice. Check out LDA (http://www.mpi-sb.mpg.de/LEDA/leda.html) and others. I
recommend to use C++ for any new software project if there is a stable C++
compiler available and you know C++ (assuming, there is no other reason not to
use it).

When using C++, you should use its class design. Otherwise, you just have an
almost C-compatible version written in C++. "Almost", since there are a couple
of differences between ANSI C and draft ANSI C++. "Draft", since there is not
yet a fully ANSI C++ compliant compiler available.

Gregor



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.