Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do you do this thing

2 views
Skip to first unread message

Philip Egberts

unread,
Apr 8, 2001, 11:55:17 PM4/8/01
to
Hi,
I just have a few questions. When you create an instance of the graph
class, how does the constructor work if you do not know what the number of
verticies are, since that will be done in the createGraph(Graph&)
function. I'm not sure how to finish this, but I'll see everyone
tomorrow.
Phil Egberts
P.S. Prof. Chen said this was supposed to be easy. So when does the easy
part begin?????

NULL!!

unread,
Apr 8, 2001, 11:57:26 PM4/8/01
to
i think you don't have to do anything with Graph
i just did Graph::Graph(){}
i am not sure my program is not working yet .

Kiani Puya

unread,
Apr 8, 2001, 11:59:22 PM4/8/01
to

The easy part begings when your done. i still have to get there! ;o)


On Mon, 9 Apr 2001, Philip Egberts wrote:

John Wu

unread,
Apr 9, 2001, 1:39:03 AM4/9/01
to
On Mon, 9 Apr 2001, Philip Egberts wrote:

You just need to initialize some parameters in your constructor, as the
memory allocation part will be done in createGraph(Graph&), where you get
to know how much memory you will need.

It is the darkest before dawn! There is hope, phil! :)

Btw, I will be in SF1012 tomorrow from 9 to 11. Come and see me if you
have any last minute question.

.--------..------------..--------..-----------------------..--------.
| o\ /o || John C Wu || o\ /o || Engineering Science || o\ /o |
| ---- || || ---- || University of Toronto || ---- |
`--------'`------------'`--------'`-----------------------'`--------'

"Memory is like an orgasm. It's a lot better if you don't have to fake it."
Seymour Cray commenting on virtual memory


0 new messages