parse error help
Elfyn McBratney
elfyn-cygwin@exposure.org.uk
Thu Apr 24 19:53:00 GMT 2003
> > +++++++++++++++++++++++++++++++++++++++++
> > sample.c: In function `main':
> > sample.c:19: parse error before "double"
> > ++++++++++++++++++++++++++++++++++++++++++
>
> I think this is your problem...
>
> [...]
> for (i=0; i<n; i++)
> {
> unsigned int k = double gsl_rng_uniform_pos (const
> ^^^^^ gsl_rng*r);
>
> I think you meant to cast it from a double to an int...like
>
> unsigned int k = (double) gsl_rng_uniform_pos (const gsl_rng *r);
Could we have that deleted for my sake, please? :-)
Elfyn
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list