Author: Dann Corbit
Date: 08:50:57 11/30/01
Go up one level in this thread
On November 30, 2001 at 02:19:22, Russell Reagan wrote: >Does a program (not limited to only chess programs) compile differently if it's >compiled as a C program rather than a C++ program? For example, if a program is >written in straight C, but has a .cpp extention, MSVC++ will compile it as C++ >(to the best of my knowledge), and I'm wondering if there is any difference at >all between the compilation of a C program when compiled as C++ versus a C >program compiled as C. There are a number of differences. For instance, void pointers do not require (and should not receive) a cast in C when being assigned to any other data pointer type. The cast is *required* in C++. There are (obviously) more keywords in C++, and therefore some C code will not compile without a variable name change. Try this google query: http://groups.google.com/groups?as_ugroup=comp.lang.c&as_usubject=differences%20c%20c%2b%2b&hl=en
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.