[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

function pointer

From: Clebson Abati Graeff
Subject: function pointer
Date: Mon, 31 Jul 2006 11:17:49 -0300

I want to set a function pointer passing it to an object. I think it
would be something like this

-(int) setPotential: (double)(*potential)(double r, void * par);

but the compiler returns

error: syntax error before '(' token

I can't figure out where is the problem. Someone have any idea? Thanks.

Clebson Abati Graeff

A way a lone a last a loved a long the riverrun

reply via email to

[Prev in Thread] Current Thread [Next in Thread]