Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!maverick.ksu.ksu.edu!orion.cis.ksu.edu!jxf From: jxf@procyon.cis.ksu.edu (Jerry Frain) Newsgroups: comp.lang.c++ Subject: Passing variable #arguments through method Message-ID: <1990Aug3.165607.2292@maverick.ksu.ksu.edu> Date: 3 Aug 90 16:56:07 GMT Sender: news@maverick.ksu.ksu.edu (The News Guru) Reply-To: jxf@procyon.cis.ksu.edu (Jerry Frain) Distribution: usa Organization: Kansas State University, Dept. of Computing and Information Sciences Lines: 22 Please pardon my ignorance, but is there a simple way to do the following: class foo { public: print(char *fmt, ...) { fprintf(a_file, fmt, ...); } } Where the (...) in the fprintf would be the same arguments as passes to the foo::print() method? I have tried a number of things, but I can't seem to find a way to get it to work, other than writing a long (or many) method declarations. Thanks in advance, --Jerry -- Jerry Frain -- Perpetual Student Kansas State University Department of Computing & Info Sciences Internet : jxf@ksuvax1.cis.ksu.edu Manhattan, Kansas UUCP : ...!{rutgers,textbell}!ksuvax1!jxf