Mail Archives: djgpp/1999/02/09/13:39:11
Message-ID: | <000f01be545b$b2285f60$952c1ec8@enterprise-z>
|
From: | "Jorge Ivan Meza Martinez" <jimeza AT usa DOT net>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | a problem++ with classes inside others
|
Date: | Tue, 9 Feb 1999 13:39:48 -0500
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 4.72.3110.5
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
Reply-To: | djgpp AT delorie DOT com
|
I am trying to make a graph class, I must make two classes
* graph nodes
* graph pathes ( relations between nodes )
a node has a value and an array of graph pathes, and,
a node path has a weight and a pointer to a graph node.
I made both classes and in the headers I put:
"ifndef __GraphNode_h_
#define __GraphNode_h_"
to prevent loop includes.
But I can't make this class - inside - other - than - has - a - reference -
to - the - first work,
compiler says that a class is not known in the other's class when the header
is included and
the source file is in the project.
Sorry if it is a little confused, if anyone can help me please tell me and
I will send you my code, is very short for see my problem.
thanks,
Jorge Ivan Meza Martinez
jimeza AT usa DOT net
jimezam AT armenia DOT multi DOT net DOT co
jimeza.home.ml.org
- Raw text -