home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 15973 < prev    next >
Encoding:
Text File  |  1992-11-09  |  876 b   |  23 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!caen!zaphod.mps.ohio-state.edu!rpi!martid
  3. From: martid@vccsouth21.its.rpi.edu (David Martin)
  4. Subject: Referencing `...' arguments in functions
  5. Message-ID: <b#n125j@rpi.edu>
  6. Nntp-Posting-Host: vccsouth21.its.rpi.edu
  7. Organization: Rensselaer Polytechnic Institute, Troy NY
  8. Distribution: usa
  9. Date: Mon, 9 Nov 1992 18:22:31 GMT
  10. Lines: 11
  11.  
  12.  
  13. I wish to write a function having an unknown number of arguments.  I know
  14. that the '...' in the function declaration will allow for any number of
  15. arguments, but how do I actually access these variables.
  16.  
  17. If there is a solution to that question (which I'm sure there is), is
  18. there any way for me to know the number of arguments and, more
  19. importantly, the variable type of each argument?
  20.  
  21. Thanks for your help.  I would appreciate responses through e-mail since
  22. I am not a frequent usenet reader.
  23.