|
||||||
| C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hello there,
Im new in C++ programming, and i ve some troubles that ive never seen in other languages. I ve two classes, and each one has a pointer to the other: class C1{ public: C2* pointerC2; } class C2{ public: C1* pointerC1; } Well, the compiler cannot parse it, i think its cause C2 is not visible for C1 in compiling time. In fact, for C1, C2 its not yet declare. What can i do, please? Thank you, and excuse my very bad english. |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| function pointer | Chinmoy | C Tutorials | 0 | 03-19-2008 01:52 AM |
| Classes | sthenri | Java Help | 2 | 12-06-2007 08:16 AM |
| Pseudo + Pointer diagram, Help from the masters | borny86 | Pascal/Delphi | 2 | 11-30-2007 06:22 PM |
| Derived Classes Can't Set Function Pointers | dargueta | C and C++ | 11 | 11-05-2007 10:04 PM |
| Issue writing to file: pointer to a class which contains pointers to other classes | Sheemer | C and C++ | 0 | 08-21-2007 02:17 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |