Groovy hepcat el prinCipante was jivin' on 23 Jan 2004 08:08:04 -0800
in comp.lang.c.
Casting ? Help urgently needed!'s a cool scene! Dig it!
[color=blue]
>I'm getting tired of the following error message.
>Compiler Error message : Error: Need explicit cast to convert
>from: float
>to: float *[/color]
Then stop trying to convert a float to a pointer. What on Earth are
you doing that for? It's a rather silly thing to do, not to mention
illegal.
[color=blue]
>I am trying to use a routine from the Numerical Recipes library called
>amebsa.c. The routine requires several parameters of the following[/color]
For those of us who haven't read that book and consequently don't
know the file or function, please state its purpose, prototype and
definition (code).
[color=blue]
>form. *iter, **p, *yb.... . How does one initialize these variables?[/color]
Mu. Without knowing the slightest thing about the function, how can
we say what to pass to it?
[color=blue]
>If I declare them as pointer (in this case, *yb and *iter) the
>compiler still tells me that it needs an explicit cast to covert the
>variables from: float to: float *.
>
>Surprisingly the compiler seems to accept the variable defined as **p,
>which I initialized that way (float **P;)[/color]
And, to what does this pointer point?
[color=blue]
>additionally I don't know how to use void functions!! Where is the[/color]
What do you mean? void functions are functions that simply return
void (ie., no value). You simply call such a function, and don't use
the (non-existant) return value in an expression. What's the problem?
What don't you understand?
[color=blue]
>result of the routine being stored?[/color]
What result? A void function doesn't have a result (return value).
[color=blue]
>Since this the basis of my thesis, I would really be grateful for any
>ideas or suggestions!!![/color]
You're writing a thesis without knowing the first thing about the
subject thereof? Good luck! You'll need it.
--
Dig the even newer still, yet more improved, sig!
http://alphalink.com.au/~phaywood/
"Ain't I'm a dog?" - Ronny Self, Ain't I'm a Dog, written by G. Sherry & W. Walker.
I know it's not "technically correct" English; but since when was rock & roll "technically correct"?