Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: sliding attacks in three #define

Author: Andrei Fortuna

Date: 03:38:39 04/09/04

Go up one level in this thread


On April 09, 2004 at 06:13:45, rasjid chan wrote:
>On April 09, 2004 at 04:55:25, Gerd Isenberg wrote:
>
>>On April 09, 2004 at 02:30:36, rasjid chan wrote:

>Hi,
>
>How can we have #define that extends to the nexct line. My consultant
>newphew just back from Australia with a BSc(Computer Science) also
>said cannot be done.

Just add a \ to the end of the line and continue the #define on the next line as
in :

#define func(X,Y,Z)      some_code \
                         some_more_code;

and make sure you don't have any spaces or tabs after the '\'

Since when having a BSc in Computer Science means you know how to program ? In
theory yes, but I have seen too many cases of Computer Science graduates who
have big trouble writing even simple programs. I wished to say more about this
"X has a degree in CS and if he said something could not be done it most
probably can't be done" type of reasoning, but could not find some kind words so
I will censor myself at this point.

Andrei





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.