warum bekomme ich die fehler:
error: invalid use of undefined type 'struct b'
error: forward declaration of 'struct b'
wenn ich den folgenden code kompilieren will? :
#include
using namespace std;
class b;
class a
{
public:
b* pointer;
void atest();
};
void a::atest()
{
cout
error: invalid use of undefined type 'struct b'
error: forward declaration of 'struct b'
wenn ich den folgenden code kompilieren will? :
#include
using namespace std;
class b;
class a
{
public:
b* pointer;
void atest();
};
void a::atest()
{
cout
Kommentar