//2011/02/25 point day8
//create by lichain
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
cout << "argument count is " << argc << "\n";
for(int i = 0; i < argc; i++) {
char *arg = argv[i];
cout << "arg[" << i <<"] is " << argv[i] << "\n";
/*switch(arg[0]) {
case '-':
// 處理參數,設定執行選項,例如-o、-p、-r等等
default: */
// 執行對應功能
}
return 0;
}
沒有留言:
張貼留言