"sam" <sam++@--.com> wrote in message news:d6***********@news.hgc.com.hk...
Hi,
How can I use getline ignore the commandline arguments?
No special action is needed in order to ignore
command-line arguments. Simply ignore them.
You can have your 'main()' function refuse
to 'admit' that any exist, by not declaring
any:
int main()
Or if you do declare them:
int main(int argc, char **argv)
You can still 'ignore' them by not referring to
them (however in this case some compilers might
issue a warning).
-Mike