Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: I'm Confused. C, C++, C#. Which to Use?

Author: David Rasmussen

Date: 10:31:59 11/16/02

Go up one level in this thread


On November 16, 2002 at 12:01:01, José Carlos wrote:

>
>  Most (if not all) C++ copilers are also C compilers. Visual C++ is.

C is (with disregard to a few extreme cases) a subset of C++, so all C++
compilers are C compilers.

>  What languaje to choose is a matter of personal preference, because both are
>equally good for chess programming.

I disagree.

>  C is conceptually easier to learn.

I disagree.

>With C++ you can write conceptually more
>complex programs with less complexity for you. Chess is simple enough for making
>C++ conceptual advantage not important.

I disagree wildly.

Chess programs are complex enough that their design matters in the long run. At
one time or another, most chess programmers do a rewrite because their design
has gotten too messy, and they have to many undiscovered bugs. C++ is vastly
superior in this regard. It takes time to become a good C++ programmer. But it
takes even longer to become a good C programmer. On the other hand, C++ let's a
beginner create much more, faster.

If you want to learn C++, I suggest you buy the brilliant book "Accelerated
C++", by far the best C++ beginner and intermediate book in existence. And it's
modern and up-to-date both in content and in teaching methods.

/David



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.