So far, I can't seem to get the simplest version of this program to work.
That's because you're knocking on the wrong door. Programs access
command-line arguments through the main() parameters argc and argv:
int main(int argc, char * argv[]) {
for (int i = 1; i < argc; i++)
std::cout << argv[i] << "\n";
}
What C programming book are you using? Doesn't it explain this? If it
doesn't you need to get a better book. Deitel and Deitel (third edition)
explains it in Section 10.4, Command-Line Arguments.
Received on Tue Feb 27 2007 - 12:27:28 EST
This archive was generated by hypermail 2.2.0 : Tue Feb 27 2007 - 22:03:10 EST