inputing multiple prototypes in program

So I have to write an averaging program using lists but for ints and doubles when I write the prototype headers to be used and pull from the lists above main the first reads the va_list fine but cant read from any other list please help or refer to what I should do differently?
dint undestood ur problem properly.
You can use function templates for averaging. If you are using va_list, you need to use va_args repeatedly to fetch other values and you will also require to know the type of value.
chk:http://www.cplusplus.com/reference/cstdarg/va_list/
http://www.questionscompiled.com/answer.jsp?qid=207&technology=cpp
Topic archived. No new replies allowed.