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

error message

0 views
Skip to first unread message

Badiei Sara

unread,
Apr 9, 2001, 3:57:57 AM4/9/01
to
what does this error message mean??
i have no clue....

Graph.cc: In function `int main(...)':
Graph.cc:248: void value not ignored as it ought to be
Graph.cc:251: void value not ignored as it ought to be

sara

Mohindra Rohit

unread,
Apr 9, 2001, 11:11:01 AM4/9/01
to Badiei Sara
I believe it means you are using pointers to functions incorrectly
from my expereince you have to remember that calling a function with out
parameter brackets creates a POINTER to that function
eg
void function(int a, int b)

so when you call another function that wants a pointer

doSomething(function f)

then inside doSomething you can access the function just as you would any
pointer data

(*f)(a,b);

check the csc180 c textbook for simpler examples, maybe try a little test
program

hope this helps

0 new messages