[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Constructing classes
From: |
Juan Barragan |
Subject: |
Constructing classes |
Date: |
Fri, 1 Feb 2002 15:50:11 +0100 |
Hi,
I've been working with g++ 2.95.3 and, well I dont know if the
following is
a bug, I defined a class like:
class MyClass {
public:
datastuff;
Some_data_created_with_the_data_stuff;
MyClass();
//With copy and assignement constructors-operators
MyClass* next;
private:
otherstuff;
};
and then I create a linked list. The problem being with expresions like
MyClass* p=new MyClass(rigth_stuff);
Sometimes, p->Some_data_created..., does give right results, sometimes
it
doesnt.
I'll be pleased to hear about that, if that's a problem of the compiler
or
is just me (just another, poor newbye)
Thanks for any help.
J.Barragan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Constructing classes,
Juan Barragan <=