Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Where do you include winboard stuff in your program?

Author: José Carlos

Date: 11:59:12 12/15/04

Go up one level in this thread


On December 15, 2004 at 13:47:43, Uri Blass wrote:

>On December 15, 2004 at 13:00:35, Alessandro Scotti wrote:
>
>Hi Alessandro,
>I do not understand what is ::
>I never used it in code that I wrote but I can see it not only in your code but
>also in nalimov's code.
>
>It seems that both you and nalimov are smarter than me.

  It doesn't have to do with being smart. The :: is the scope operator in C++.
If you have a class and define a function inside, in the cpp implementation
module you tell the compiler:
MyClass::MyFunct() so that it know you're defining the function inside the
class.
  You also use :: to specify something belongs to a namespace:
MyNameSpace::MyFunct()

  José C.



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.