ערכתי לאחרונה בתאריך 29.01.09 בשעה 00:51 בברכה, zip_zap
לילה טוב!
יש לי שני sructs (שאת ההגדרה שלהם אצרף למטה),
אני מעניין להגדיר פוינטר מסוג struct A בתוך struct B אך אני מקבל את השגיאה הבאה :
error C2146: syntax error : missing ';' before identifier 'edge' error C4430: missing type specifier - int assumed. Note: C++ does not support default-int error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
|
אני ממש לא מבין למה אני מקבל את השגיאה הנ"ל...
אשמח לעזרה...
#ifndef __TRIPLE_H__ #define __TRIPLE_H__#include "Point.h" #include "VerticalSide.h" struct Triple { Point x_y; int other_end_point; bool is_open_side;//'1' to open side, '0' to close. VerticalSide* edge; }; #endif
|
אני מנסה להגדיר פוינטר מסוג VerticalSide בתוך המבנה Triple....
כשאני מוחק את השורה הבאה
הקוד עובר קומפילציה...
תודה מראש! 