Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: question about errors when I change my C code to C++

Author: Tom Likens

Date: 06:55:35 02/27/03

Go up one level in this thread


On February 26, 2003 at 17:07:45, Bo Persson wrote:

[--snip--]


>>I see that I did not include data.h in data.c but it caused me no problem
>>with c files
>
>You have found an actual difference between the languages!
>
>In C++, const variables are considered local unless declared otherwise. In C,
>all global (file level) variables are extern by default.
>
>Bo Persson
>bop2@telia.com


No, no- C++ is just a superset of C.  There is *absolutely*
no differences between them :-) :-) :-) :-) :-) ;-)

regards,
--tom



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.