Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Ulam(int iloscPar,double &sumaWartosciZwracanych,double (*f)(double), int acc, double a, ...)
- {
- va_list ap;
- va_start(ap,a);
- sumaWartosciZwracanych=Ulam(f,a,va_arg(ap,double));
- for(int i=1; i<iloscPar; i++)
- {
- sumaWartosciZwracanych+=Ulam(f,va_arg(ap,double),va_arg(ap,double));
- }
- va_end(ap);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement