Hi,
How can i write a program that accepts words as an option, like CMD in windows xp.
Thanks.
Hi,
How can i write a program that accepts words as an option, like CMD in windows xp.
Thanks.
The arguments to "main" is used for just this. Google is your friend.
Search for : int main(int argc, char *argv[])
Nobody's asked that before - that's why we wrote a FAQ in anticipation of your arrival
http://faq.cprogramming.com/cgi-bin/...&id=1043284392
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.