how to return multiple values??

i tried return *p1,*c1;
but only c1 returns in my class. any help???
Pass by reference, return an std::vector, or an std::pair.
Topic archived. No new replies allowed.